public static IServiceCollection AddToContainer(this IServiceCollection services, IConfiguration configuration) { DataContainer.AddToContainer(services, configuration); services.AddTransient(typeof(IUserService), typeof(UserService)); services.AddTransient(typeof(IServiceService), typeof(ServiceService)); services.AddTransient(typeof(IServicePackageService), typeof(ServicePackageService)); services.AddTransient(typeof(Services.Resource.IResourceService), typeof(ResourceService)); services.AddTransient(typeof(IEventServiceService), typeof(EventServiceService)); services.AddTransient(typeof(IEventService), typeof(EventService)); services.AddTransient(typeof(IContainerNameService), typeof(ContainerNameService)); services.AddTransient(typeof(IBlobService), typeof(BlobService)); services.AddTransient(typeof(IFaceRecognitionService), typeof(FaceRecognitionService)); services.AddTransient(typeof(ICsvService), typeof(CsvService)); services.AddTransient(typeof(IEventUpdaterService), typeof(EventUpdaterService)); services.AddTransient(typeof(IEventGenerator), typeof(EventGenerator)); services.AddTransient(typeof(IMLService), typeof(MLService)); return(services); }