예제 #1
0
#pragma warning disable CS0618 // Type or member is obsolete
            public TestHostedService(IHostApplicationLifetime lifetime,
                                     AspNetCore.Hosting.IApplicationLifetime lifetime1,
                                     Extensions.Hosting.IApplicationLifetime lifetime2)
#pragma warning restore CS0618 // Type or member is obsolete
            {
                _lifetime = lifetime;
            }
예제 #2
0
            public void Configure(AspNetCore.Builder.IApplicationBuilder app, AspNetCore.Hosting.IApplicationLifetime applicationLifetime, AspNetCore.Hosting.IHostingEnvironment env, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory)
            {
                // This middleware is only added when env.IsLinuxConsumption()
                // It should be a no-op for most tests
                app.UseMiddleware <AppServiceHeaderFixupMiddleware>();

                _startup.Configure(app, applicationLifetime, env, loggerFactory);
            }
 public void Configure(AspNetCore.Builder.IApplicationBuilder app, AspNetCore.Hosting.IApplicationLifetime applicationLifetime, AspNetCore.Hosting.IHostingEnvironment env, ILoggerFactory loggerFactory)
 {
     _startup.Configure(app, applicationLifetime, env, loggerFactory);
 }