public DirtbagBLL(IMemoryCache memoryCache, DAL.IDirtbagDAL dirtbagDAL, DAL.ISubredditDAL subredditDAL, DAL.IYouTubeDAL youTubeDAL) { cache = memoryCache; dirtbag = dirtbagDAL; subDAL = subredditDAL; ytDAL = youTubeDAL; }
//private Utilities.AuthUtils authUtils; public SubredditBLL(IMemoryCache memoryCache, DAL.ISubredditDAL subredditDAL, UserManager <ApplicationUser> userManager, DAL.INoteTypesDAL noteTypesDAL, RoleManager <IdentityRole> roleManager, Utilities.IAuthUtils authUtils) { subDAL = subredditDAL; cache = memoryCache; ntDAL = noteTypesDAL; _roleManager = roleManager; this.authUtils = authUtils; }
public AuthUtils(IConfigurationRoot config, UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, ILoggerFactory loggerFactory, DAL.ISubredditDAL subredditDAL, RedditSharp.RefreshTokenWebAgentPool agentPool, RedditSharp.WebAgentPool <string, RedditSharp.BotWebAgent> serviceAgentPool) : base(config, userManager, roleManager, loggerFactory, subredditDAL, agentPool, serviceAgentPool) { _userManager = userManager; //_logger = loggerFactory.CreateLogger<AuthUtils>(); _roleManager = roleManager; Configuration = config; subDAL = subredditDAL; this.agentPool = agentPool; }