• 大小: 8.89KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: API  asp.net  restful  源码  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Builder;

namespace ASPNETCoreAPI
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var host = new WebHostBuilder()
                .UseKestrel()
                .UseContentRoot(Directory.GetCurrentDirectory())
                .UseIISIntegration()
                .UseStartup()
                .Build();

            host.Run();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        1481  2016-09-21 17:22  ASPNETCoreAPI.sln
     目录           0  2016-09-21 17:22  src\
     目录           0  2016-12-26 08:58  src\ASPNETCoreAPI\
     文件         168  2016-09-21 17:22  src\ASPNETCoreAPI\appsettings.json
     文件        1145  2016-09-21 17:22  src\ASPNETCoreAPI\ASPNETCoreAPI.xproj
     目录           0  2016-09-21 17:22  src\ASPNETCoreAPI\Controllers\
     文件        2076  2016-09-21 17:22  src\ASPNETCoreAPI\Controllers\UsersController.cs
     目录           0  2016-09-21 17:22  src\ASPNETCoreAPI\Migrations\
     文件        1002  2016-09-21 17:22  src\ASPNETCoreAPI\Migrations\20160801075113_MyFirstMigration.cs
     文件         972  2016-09-21 17:22  src\ASPNETCoreAPI\Migrations\20160801075113_MyFirstMigration.Designer.cs
     文件         939  2016-09-21 17:22  src\ASPNETCoreAPI\Migrations\DataContextModelSnapshot.cs
     目录           0  2016-09-21 17:22  src\ASPNETCoreAPI\Models\
     文件         387  2016-09-21 17:22  src\ASPNETCoreAPI\Models\DataContext.cs
     文件         296  2016-09-21 17:22  src\ASPNETCoreAPI\Models\User.cs
     文件         588  2016-09-21 17:22  src\ASPNETCoreAPI\Program.cs
     文件        1577  2016-09-21 17:22  src\ASPNETCoreAPI\project.json
     目录           0  2016-09-21 17:22  src\ASPNETCoreAPI\Properties\
     文件         661  2016-09-21 17:22  src\ASPNETCoreAPI\Properties\launchSettings.json
     文件        1874  2016-09-21 17:22  src\ASPNETCoreAPI\Startup.cs
     文件         551  2016-09-21 17:22  src\ASPNETCoreAPI\web.config

评论

共有 条评论