public CategoryDeleter(DataContext db, ICategoryService categoryService, IDeleterService deleterService, ICacheService cacheService) { this.db = db; this.categoryService = categoryService; this.deleterService = deleterService; this.cacheService = cacheService; }
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; }
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 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; }
public BlogController(IBlogService blogService, IDeleterService deleterService) { this.deleterService = deleterService; this.blogService = blogService; }