Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 protected void Application_Start()
 {
     AutoMapperConfiguration.Configure();
     DependencyResolverModule.Setup();
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
 }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
 }
Ejemplo n.º 7
0
        public static void Resolve(IServiceCollection services, IConfiguration configuration)
        {
            services.AddTransient <IApiUrlsService, ApiUrlService>();

            DependencyResolverModule.Configure(services, configuration);
        }