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) { options.Raven.Indexes.Add(); options.Raven.Indexes.Add(); options.Raven.Indexes.Add(); options.Interceptors.Add(gravity: 100); } }