• 大小: 1.24M
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: .NET  Core2.0  Api  Vue  2.0  

资源简介

前后端分离(.NET Core Api Value),实现简单的个人博客

资源截图

代码片段和文件信息

using System;
using Blog.Core.Model.Models;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;

namespace Blog.Core
{
    public class Program
    {
        public static void Main(string[] args)
        {
            // 生成承载 web 应用程序的 Microsoft.AspNetCore.Hosting.IWebHost。Build是WebHostBuilder最终的目的,将返回一个构造的WebHost,最终生成宿主。
            var host = CreateWebHostBuilder(args).Build();

            // 创建可用于解析作用域服务的新 Microsoft.Extensions.DependencyInjection.IServiceScope。
            using (var scope = host.Services.CreateScope())
            {
                var services = scope.ServiceProvider;
                var loggerFactory = services.GetRequiredService

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-09-11 02:42  Blog.Core-master\
     文件        5965  2019-09-11 02:42  Blog.Core-master\.gitignore
     目录           0  2019-09-11 02:42  Blog.Core-master\.template.config\
     文件         368  2019-09-11 02:42  Blog.Core-master\.template.config\template.json
     文件         173  2019-09-11 02:42  Blog.Core-master\Blog.Core.Build.bat
     目录           0  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\
     目录           0  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Attribute\
     文件         490  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Attribute\CachingAttribute.cs
     文件         557  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Blog.Core.Common.csproj
     目录           0  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\DB\
     文件        2953  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\DB\baseDBConfig.cs
     目录           0  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\GlobalVar\
     文件         543  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\GlobalVar\GlobalVars.cs
     目录           0  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Helper\
     文件        2634  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Helper\Appsettings.cs
     文件        1892  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Helper\ConsoleHelper.cs
     文件       13226  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Helper\FileHelper.cs
     文件        2061  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Helper\GetNetData.cs
     文件         845  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Helper\HtmlHelper.cs
     文件        3718  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Helper\Jsonhelper.cs
     文件        2516  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Helper\MD5Hepler.cs
     文件        3870  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Helper\Recursionhelper.cs
     文件        1061  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Helper\SerializeHelper.cs
     文件        1739  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Helper\UnicodeHelper.cs
     文件        5307  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Helper\UtilConvert.cs
     目录           0  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\HttpContextUser\
     文件         957  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\HttpContextUser\AspNetUser.cs
     文件         323  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\HttpContextUser\IUser.cs
     目录           0  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Hubs\
     文件         791  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\Hubs\ChatHub.cs
     目录           0  2019-09-11 02:42  Blog.Core-master\Blog.Core.Common\LogHelper\
............此处省略231个文件信息

评论

共有 条评论