c# - 如何记录 Azure 移动服务后端

标签 c# html asp.net azure asp.net-web-api

大家好,我有一个关于 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)
    {
        ...
    }

变成这样:

API Help Page

您需要做的是:

  1. 右键单击您的 Mobile Services .NET 项目(在 Visual Studio 中)
  2. 转到“属性”
  3. 选中“XML 文档文件”复选框(下图)

Properties Windows

有关更多帮助页面自定义选项,请关注此资源: http://www.codeproject.com/Articles/819848/Master-the-Managed-Azure-Mobile-Services-Backend

关于c# - 如何记录 Azure 移动服务后端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25595094/

相关文章:

c# - WCF 数据服务,序列化 Entity Framework 部分类的附加属性

c# - Windows.Form 不触发 keyDown 事件

javascript - Bootstrap carousel slide 褪色+滑动

c# - ASP.NET session 与 Cookie 过期

c# - 在内容页面之间遍历时 cookie 值消失

c# - .Net Core 控制台日志记录未出现

c# - 检测不可变对象(immutable对象)的高效方法?

javascript - 动态页面 anchor slider 故障

javascript - 一些(JavaScript)事件重新排序有序的 html 选择选项

asp.net - 在不使用 PDF 的情况下在 Asp.Net 应用程序中打印 CrystalReport 报表