コード例 #1
0
ファイル: Startup.cs プロジェクト: anurse/aspval
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.Run(async(context) =>
            {
                context.Response.ContentType = "text/plain";
                await context.Response.WriteAsync(FxInfo.Get());
            });
        }
コード例 #2
0
ファイル: Startup.cs プロジェクト: anurse/aspval
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseRouting();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapGet("/", async(context) =>
                {
                    context.Response.ContentType = "text/plain";
                    await context.Response.WriteAsync(FxInfo.Get());
                });
            });
        }
コード例 #3
0
    public void Add(object data)
    {
        FxInfo fxInfo = data as FxInfo;

        elements.Add(fxInfo.fx_file, fxInfo);
    }