using JiShe.CollectBus.Common.Interfaces; using JiShe.CollectBus.Common.Models; using Microsoft.Extensions.DependencyInjection; namespace JiShe.CollectBus.MongoDB { public class JiSheCollectBusMongoDbModule: IJiSheModule { public void ConfigureServices(ServiceContext context) { context.Services.AddSingleton(); context.Services.AddSingleton(); context.Services.AddSingleton(typeof(IMongoRepository<>), typeof(MongoBaseRepository<>)); } } }