public CustomerFullNameUpdateReceiver(ICustomerNameUpdateService customerNameUpdateService, IOptions <RabbitMqConfiguration> rabbitMqOptions) { _hostname = rabbitMqOptions.Value.Hostname; _queueName = rabbitMqOptions.Value.QueueName; _username = rabbitMqOptions.Value.UserName; _password = rabbitMqOptions.Value.Password; _customerNameUpdateService = customerNameUpdateService; }
public CustomerFullNameUpdateReceiver(ICustomerNameUpdateService customerNameUpdateService, IOptions <RabbitMqConfiguration> rabbitMqOptions) { this.hostname = rabbitMqOptions.Value.Hostname; this.queueName = rabbitMqOptions.Value.QueueName; this.username = rabbitMqOptions.Value.UserName; this.password = rabbitMqOptions.Value.Password; this.customerNameUpdateService = customerNameUpdateService; InitializeRabbitMqListener(); }
public CustomerFullNameUpdateReceiver(ICustomerNameUpdateService customerNameUpdateService, IOptions <RabbitMqConfiguration> options) { this.customerNameUpdateService = customerNameUpdateService; this._hostname = options.Value.HostName; this._queueName = options.Value.QueueName; this._username = options.Value.UserName; this._password = options.Value.Password; InitializeRabbitMqConfiguration(); }
public CustomerFullNameUpdateReceiver(ICustomerNameUpdateService customerNameUpdateService, IOptions <RabbitMqConfiguration> rabbitMqOptions, ILogger <CustomerFullNameUpdateReceiver> logger) { _logger = logger; _hostname = rabbitMqOptions.Value.Hostname; _queueName = rabbitMqOptions.Value.QueueName; _username = rabbitMqOptions.Value.UserName; _password = rabbitMqOptions.Value.Password; _customerNameUpdateService = customerNameUpdateService; InitializeRabbitMqListener(); }