public EndpointMiddleware(RequestDelegate next, IDecompilationProvider decompilationProvider, ILoggerFactory loggerFactory) { _next = next; _logger = loggerFactory.CreateLogger <EndpointMiddleware>(); var types = typeof(EndpointMiddleware).Assembly.DefinedTypes .Where(type => !type.IsAbstract && typeof(BaseMiddleware).GetTypeInfo().IsAssignableFrom(type)) .Select(t => (BaseMiddleware)Activator.CreateInstance(t, next, decompilationProvider)); _endpointHandlers = types.ToDictionary( x => x.EndpointName, endpoint => endpoint, StringComparer.OrdinalIgnoreCase ); _endpoints = new HashSet <string>( _endpointHandlers.Keys, StringComparer.OrdinalIgnoreCase ); }
public BaseMiddleware(RequestDelegate next, IDecompilationProvider decompilationProvider) { _next = next; _decompilationProvider = decompilationProvider; }
public DecompileMemberMiddleware(RequestDelegate next, IDecompilationProvider decompilationProvider) : base(next, decompilationProvider) { }
public AddAssemblyMiddleware(RequestDelegate next, IDecompilationProvider decompilationProvider) : base(next, decompilationProvider) { }
public ListNamespacesMiddleware(RequestDelegate next, IDecompilationProvider decompilationProvider) : base(next, decompilationProvider) { }