public static void Resolve(IServiceCollection services, IConfiguration configuration) { services.AddSingleton(configuration); services.AddTransient <INotificationService, BLL.Services.NotificationService>(); services.AddTransient <IEmailSender, EmailSender>(); DependencyResolverModule.Configure(services, configuration); }
public static void Resolve(IServiceCollection services, IConfiguration configuration) { services.AddTransient <IRoleService, RoleService>(); services.AddTransient <IAccountService, AccountService>(); services.AddTransient <ICryptoProvider, MD5CryptoProvider>(); services.AddTransient <IIdentityProvider, IdentityProvider>(); DependencyResolverModule.Configure(services, configuration); }
protected void Application_Start() { AutoMapperConfiguration.Configure(); DependencyResolverModule.Setup(); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); }
public static void Resolve(IServiceCollection services, IConfiguration configuration) { services.AddSingleton(configuration); services.AddSingleton <IHttpContextAccessor, HttpContextAccessor>(); services.AddTransient <ITeamService, BLL.Services.TeamService>(); services.AddTransient <ICommunicationService, CommunicationService>(); DependencyResolverModule.Configure(services, configuration); }
public static void Resolve(IServiceCollection services, IConfiguration configuration) { services.AddTransient <ITicketService, BLL.Services.TicketService>(); services.AddTransient <ICommentService, CommentService>(); services.AddTransient <ITagService, TagService>(); services.AddTransient <ITicketLinkService, TicketLinkService>(); services.AddTransient <ICommunicationService, CommunicationService>(); DependencyResolverModule.Configure(services, configuration); }
public static void RegisterDependencies(IKernel kernel) { DependencyResolverModule.RegisterDependencies(kernel); }
public static void Resolve(IServiceCollection services, IConfiguration configuration) { services.AddTransient <IApiUrlsService, ApiUrlService>(); DependencyResolverModule.Configure(services, configuration); }