大家好,我有一个关于 Microsoft Azure 移动服务的问题。我想为 Azure 移动服务门户制作文档(网址上的文档<此处填写名称>.azure-mobile.net),以便让我的 friend 知道当您发出请求时自定义 API 应该执行哪些操作。我用 google 搜索了一下,但没有找到任何内容,而且标准 C# 样式文档也没有显示任何内容。它必须能够记录它,因为在网站上它告诉我没有可用的文档或类似的信息。
最佳答案
在帮助页面上显示标准 C# 文档非常简单。
<小时/>基本上是为了这个:
/// <summary>
/// Creates a new user account.
/// </summary>
/// <param name="model">Object containing the basic information about the user.</param>
/// <returns>User with the basic data and the JWT token.</returns>
/// <exception cref="BusinessLogicException">
/// Throws business exception if the user that is being created contains invalid data, such as invalid email, username and so on.
/// </exception>
public async Task<ResponseMessage<UserLogin>> Post(PostUserModel model)
{
...
}
变成这样:
您需要做的是:
- 右键单击您的 Mobile Services .NET 项目(在 Visual Studio 中)
- 转到“属性”
- 选中“XML 文档文件”复选框(下图)
有关更多帮助页面自定义选项,请关注此资源: http://www.codeproject.com/Articles/819848/Master-the-Managed-Azure-Mobile-Services-Backend
关于c# - 如何记录 Azure 移动服务后端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25595094/