using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; namespace zero.Routing; internal class RoutingModule : ZeroModule { /// public override void Register(IZeroModuleConfiguration config) { config.Services.AddScoped(); config.Services.AddScoped(); config.Services.AddScoped(); config.Services.AddScoped(); config.Services.AddScoped(); config.Services.AddScoped(); config.Services.AddScoped(); config.Services.AddScoped(); config.Services.AddScoped(); config.Services.AddScoped(); config.Services.TryAddEnumerable(ServiceDescriptor.Singleton()); config.Services.AddScoped(); } /// public override void Configure(IZeroOptions options) { RavenOptions raven = options.For(); InterceptorOptions interceptors = options.For(); raven.Indexes.Add(); raven.Indexes.Add(); raven.Indexes.Add(); } }