public void Next(Core.Service.IQueueService queueService) { if (queueService.QueueCount() > 0) { Next(); while (queueService.QueueCount((Library.Queue.Priority)priority) == 0) { Next(); } } else { Running = false; } }
public SendService(AppCore.IOC.IContainer container , Core.IEventLogger logger , Core.DataSource.IAccountDataSource accountDataSource , Core.DataSource.IConfigDataSource configDataSource , Core.DataSource.IMailDataSource messageDataSource , Core.DataSource.ISendTryDataSource sendTryDataSource , Core.Mail.IOutgoingService mailOutgoingService , Core.Service.IQueueService queueService) : base(container) { _logger = logger; _queueService = queueService; _accountDataSource = accountDataSource; _configDataSource = configDataSource; _messageDataSource = messageDataSource; _mailOutgoingService = mailOutgoingService; _sendTryDataSource = sendTryDataSource; }
public SendService(AppCore.IOC.IContainer container , Core.IEventLogger logger , Core.DataSource.IAccountDataSource accountDataSource , Core.DataSource.IConfigDataSource configDataSource , Core.DataSource.IMessageDataSource messageDataSource , Core.DataSource.ISendTryDataSource sendTryDataSource , Core.SmsProvider.IOutgoingService outgoingService , Core.Service.ICredentialService credentialService , Core.Service.IQueueService queueService) : base(container) { _logger = logger; _accountDataSource = accountDataSource; _configDataSource = configDataSource; _messageDataSource = messageDataSource; _outgoingService = outgoingService; _sendTryDataSource = sendTryDataSource; _credentialService = credentialService; _queueService = queueService; }