public ApplicationInitializer(ChatMessageSingletonService chatMessageSingletonService, IRepository repository, HangfireBackgroundService hangfireBackgroundService) { _chatMessageSingletonService = chatMessageSingletonService; _repository = repository; _hangfireBackgroundService = hangfireBackgroundService; _chatMessageLogic = new ChatMessageLogic(_repository); _chatApplicationsLogic = new ChatApplicationsLogic(_repository); _chatApplications = _chatApplicationsLogic.GetEntitiesBy(p => p.IsActive); }
public AuthController(Microsoft.AspNetCore.Identity.UserManager <ApplicationUser> _userManager, Microsoft.AspNetCore.Identity.SignInManager <ApplicationUser> _signInManager, JWTAUthenticator _jwtAuthenticaor, IRepository repository, ChatApplicationsLogic chatApplicationsLogic) { userManager = _userManager; signInManager = _signInManager; jwtAuthenticator = _jwtAuthenticaor; _chatApplicationsLogic = chatApplicationsLogic; _repository = repository; }