示例#1
0
 public CategoryDeleter(DataContext db, ICategoryService categoryService,
                        IDeleterService deleterService, ICacheService cacheService)
 {
     this.db = db;
     this.categoryService = categoryService;
     this.deleterService  = deleterService;
     this.cacheService    = cacheService;
 }
示例#2
0
 public CategoryDeleter(DataContext db, ICategoryService categoryService,
     IDeleterService deleterService, ICacheService cacheService)
 {
     this.db = db;
     this.categoryService = categoryService;
     this.deleterService = deleterService;
     this.cacheService = cacheService;
 }
示例#3
0
 public ProductController(DataContext db, IProductFinder productFinder, IDeleterService deleterService,
                          IProductService productService, ITaxClassService taxClassService, ISettingService settingService) : base(db)
 {
     this.productFinder   = productFinder;
     this.deleterService  = deleterService;
     this.productService  = productService;
     this.taxClassService = taxClassService;
     this.settingService  = settingService;
 }
示例#4
0
 public ProductController(DataContext db, IProductFinder productFinder, IDeleterService deleterService,
     IProductService productService, ITaxClassService taxClassService, ISettingService settingService)
     : base(db)
 {
     this.productFinder = productFinder;
     this.deleterService = deleterService;
     this.productService = productService;
     this.taxClassService = taxClassService;
     this.settingService = settingService;
 }
示例#5
0
        public CustomerService(DataContext db, IUserStore<User> userStore, IRoleStore<IdentityRole, string> roleStore,IDeleterService deleteService)
        {
            this.db = db;
            this.deleteService = deleteService;
            userManager = new UserManager<User>(userStore);

            if (_customerRoleID == null)
            {
                lock (padlock)
                {
                    if (_customerRoleID == null)
                    {
                        var roleManager = new RoleManager<IdentityRole>(roleStore);
                        // ReSharper disable PossibleMultipleWriteAccessInDoubleCheckLocking
                        _customerRoleID = roleManager.FindByName(User.CUSTOMER_ROLE).Id;
                        // ReSharper restore PossibleMultipleWriteAccessInDoubleCheckLocking
                    }
                }
            }
        }
示例#6
0
        public CustomerService(DataContext db, IUserStore <User> userStore, IRoleStore <IdentityRole, string> roleStore, IDeleterService deleteService)
        {
            this.db            = db;
            this.deleteService = deleteService;
            userManager        = new UserManager <User>(userStore);

            if (_customerRoleID == null)
            {
                lock (padlock)
                {
                    if (_customerRoleID == null)
                    {
                        var roleManager = new RoleManager <IdentityRole>(roleStore);
                        // ReSharper disable PossibleMultipleWriteAccessInDoubleCheckLocking
                        _customerRoleID = roleManager.FindByName(User.CUSTOMER_ROLE).Id;
                        // ReSharper restore PossibleMultipleWriteAccessInDoubleCheckLocking
                    }
                }
            }
        }
 public BlogPostCommentController(IBlogPostCommentService blogPostCommentService, IDeleterService deleterService)
 {
     this.deleterService = deleterService;
     this.blogPostCommentService = blogPostCommentService;
 }
示例#8
0
 public BlogController(IBlogService blogService, IDeleterService deleterService)
 {
     this.deleterService = deleterService;
     this.blogService    = blogService;
 }
示例#9
0
 public BlogController(IBlogService blogService, IDeleterService deleterService)
 {
     this.deleterService = deleterService;
     this.blogService = blogService;
 }
示例#10
0
 public BlogPostCommentController(IBlogPostCommentService blogPostCommentService, IDeleterService deleterService)
 {
     this.deleterService         = deleterService;
     this.blogPostCommentService = blogPostCommentService;
 }