public static async Task <RabbitMqPublisher> CreateAsync(ConnectionFactory factory, RabbitMqOptions options) => (await new RabbitMqPublisher(factory, options).Connect()) as RabbitMqPublisher;
private RabbitMqSubscriber(ConnectionFactory factory, RabbitMqOptions options) : base(factory, options) { }
private RabbitMqPublisher(ConnectionFactory factory, RabbitMqOptions options) : base(factory, options) { }
protected RabbitMqBase(ConnectionFactory factory, RabbitMqOptions options) { _factory = factory; _options = options; }