• 大小: 21.90M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 新闻  博客  

资源简介


资源截图

代码片段和文件信息

using BeetleX.FastHttpApi;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using System;
using System.Threading;
using System.Threading.Tasks;

namespace BeetleX.Blog
{
    class Program
    {
        static void Main(string[] args)
        {

            var builder = new HostBuilder()
                .ConfigureServices((hostContext services) =>
                {
                    services.AddHostedService();
                });
            builder.Build().Run();
        }
    }

    public class HttpServerHosted : IHostedService
    {
        private HttpApiServer mApiServer;

        public virtual Task StartAsync(CancellationToken cancellationToken)
        {
            mApiServer = new HttpApiServer();
            DBModules.DBH

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-07-22 15:32  XBlog\
     文件          81  2019-01-03 17:16  XBlog\.gitignore
     目录           0  2019-07-22 15:32  XBlog\.vs\
     目录           0  2019-07-22 15:32  XBlog\.vs\XBlog\
     目录           0  2019-07-22 15:33  XBlog\.vs\XBlog\v15\
     文件       24576  2019-07-23 08:48  XBlog\.vs\XBlog\v15\.suo
     目录           0  2019-07-22 15:32  XBlog\.vs\XBlog\v15\Server\
     目录           0  2019-07-22 15:32  XBlog\.vs\XBlog\v15\Server\sqlite3\
     文件           0  2019-07-22 15:32  XBlog\.vs\XBlog\v15\Server\sqlite3\db.lock
     文件        4096  2019-07-22 15:32  XBlog\.vs\XBlog\v15\Server\sqlite3\storage.ide
     文件       32768  2019-07-22 15:32  XBlog\.vs\XBlog\v15\Server\sqlite3\storage.ide-shm
     文件      959992  2019-07-23 08:48  XBlog\.vs\XBlog\v15\Server\sqlite3\storage.ide-wal
     目录           0  2019-07-22 15:32  XBlog\BeetleX.Blog\
     文件       16705  2019-01-03 17:16  XBlog\BeetleX.Blog\BeetleX.Blog.csproj
     文件         361  2019-01-03 17:16  XBlog\BeetleX.Blog\BeetleX.Blog.csproj.user
     目录           0  2019-07-22 15:32  XBlog\BeetleX.Blog\Codes\
     文件        1159  2019-01-03 17:16  XBlog\BeetleX.Blog\Codes\CacheHelper.cs
     文件        4369  2019-01-03 17:16  XBlog\BeetleX.Blog\Codes\JWTHelper.cs
     文件        5526  2019-01-03 17:16  XBlog\BeetleX.Blog\Codes\TCloudCosobject.cs
     文件        1231  2019-01-03 17:16  XBlog\BeetleX.Blog\Codes\Units.cs
     目录           0  2019-07-22 15:32  XBlog\BeetleX.Blog\Controller\
     文件        3314  2019-01-03 17:16  XBlog\BeetleX.Blog\Controller\AdminBlog.cs
     文件        2553  2019-01-03 17:16  XBlog\BeetleX.Blog\Controller\AdminBlog.js
     文件        1310  2019-01-03 17:16  XBlog\BeetleX.Blog\Controller\AdminCategory.cs
     文件        1929  2019-01-03 17:16  XBlog\BeetleX.Blog\Controller\AdminCategory.js
     文件        1086  2019-01-03 17:16  XBlog\BeetleX.Blog\Controller\AdminComment.cs
     文件        1081  2019-01-03 17:16  XBlog\BeetleX.Blog\Controller\AdminComment.js
     文件           3  2019-01-03 17:16  XBlog\BeetleX.Blog\Controller\AdminPhoto.Model.cs
     文件        4532  2019-01-03 17:16  XBlog\BeetleX.Blog\Controller\AdminPhoto.cs
     文件        3533  2019-01-03 17:16  XBlog\BeetleX.Blog\Controller\AdminPhoto.js
     文件        7511  2019-01-03 17:16  XBlog\BeetleX.Blog\Controller\AdminSetting.cs
............此处省略156个文件信息

评论

共有 条评论