3 implementations of IMiddlewareFactory
Microsoft.AspNetCore.Http (1)
MiddlewareFactory.cs (1)
11public class MiddlewareFactory : IMiddlewareFactory
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
UseMiddlewareTest.cs (2)
292public class BasicMiddlewareFactory : IMiddlewareFactory 309public class BadMiddlewareFactory : IMiddlewareFactory
11 references to IMiddlewareFactory
Microsoft.AspNetCore.Hosting (3)
GenericHost\GenericWebHostBuilder.cs (1)
80services.TryAddScoped<IMiddlewareFactory, MiddlewareFactory>();
GenericHost\SlimWebHostBuilder.cs (1)
54services.TryAddScoped<IMiddlewareFactory, MiddlewareFactory>();
WebHostBuilder.cs (1)
293services.AddScoped<IMiddlewareFactory, MiddlewareFactory>();
Microsoft.AspNetCore.Http (1)
MiddlewareFactory.cs (1)
9/// Default implementation for <see cref="IMiddlewareFactory"/>.
Microsoft.AspNetCore.Http.Abstractions (4)
Extensions\UseMiddlewareExtensions.cs (4)
172var middlewareFactory = (IMiddlewareFactory?)context.RequestServices.GetService(typeof(IMiddlewareFactory)); 176throw new InvalidOperationException(Resources.FormatException_UseMiddlewareNoMiddlewareFactory(typeof(IMiddlewareFactory)));
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
UseMiddlewareTest.cs (3)
234Assert.Equal(Resources.FormatException_UseMiddlewareNoMiddlewareFactory(typeof(IMiddlewareFactory)), exception.Message); 248sp.AddService(typeof(IMiddlewareFactory), new BadMiddlewareFactory()); 270sp.AddService(typeof(IMiddlewareFactory), middlewareFactory);