コード例 #1
0
        public Startup(IConfiguration configuration)
        {
            // HttpServer ヘルパーの初期化
            StartupHelper = new HttpServerStartupHelper(configuration);

            // AspNetLib の初期化: 必要な機能のみ ON にすること
            AspNetLib = new AspNetLib(configuration, AspNetLibFeatures.EasyCookieAuth | AspNetLibFeatures.LogBrowser);

            // 設定データへの参照の保存
            Configuration = configuration;
        }
コード例 #2
0
 public void Configure(HttpServerStartupHelper helper, IApplicationBuilder app, IWebHostEnvironment env)
 {
     // Embedded resource of the assembly
     helper.AddStaticFileProvider(AspNetResFs.CreateEmbeddedAndPhysicalFileProviders("/"));
 }
コード例 #3
0
 public void ConfigureServices(HttpServerStartupHelper helper, IServiceCollection services)
 {
 }