public PostLogsController( ILogger <PostLogsController> logger, IPostLogService postLogService) { this.postLogService = postLogService; this._logger = logger; }
public MessageQueue( ITopicLogService topicLogService, IPostLogService postLogService) { this.channel = new ConnectionFactory() { HostName = "localhost" }.CreateConnection().CreateModel(); channel.QueueDeclare(queue: QueueName, durable: false, exclusive: false, autoDelete: false, arguments: null); this._topicLogSvc = topicLogService; this._postLogSvc = postLogService; }