public HangfireBackgroundService(IRepository repository, ChatMessageSingletonService chatMessageSingletonService, ChatMessageLogic chatMessageLogic, ChatApplicationUserLogic chatApplicationUserLogic) { _repository = repository; _chatMessageSingletonService = chatMessageSingletonService; _chatMessageLogic = chatMessageLogic; _chatApplicationUserLogic = chatApplicationUserLogic; }
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); }