public RabbitPublisher(RabbitConfig config, IModel channel) { _exchange = config.Exchange ?? string.Empty; _routingKey = config.RoutingKey ?? config.QueueName; _basicProperties = config.BasicProperties; _channel = channel; }
public RabbitPublisher(RabbitConfig config, IModel channel) { _exchange = config.Exchange; _routingKey = config.RoutingKey; _basicProperties = config.BasicProperties; _channel = channel; }
private IModel CreateChannel(RabbitConfig rConfig) { return(rConfig.CreateChannel(_connection)); }