public AppLifecycleService(ILocalLogService logService, IPublishSettingsService publishSettingsService, ICommandProcessorService commandProcessorService) { _logService = logService; _publishSettingsService = publishSettingsService; _commandProcessorService = commandProcessorService; }
public void Submit <TCommand>(TCommand cmd) { ICommandProcessorService channel = _channelFactory.CreateChannel(); var jsonCmd = JsonConvert.SerializeObject(cmd); channel.Submit(cmd.GetType().ToString(), jsonCmd); ((IClientChannel)channel).Close(); }
public UpdateService(BotDbContext dbContext, ICommandProcessorService commandProcessorService, ILogger <UpdateService> logger) { _commandProcessorService = (CommandProcessorService)commandProcessorService; _dbContext = dbContext; _logger = logger; }