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

            DependencyResolverModule.Configure(services, configuration);
        }