public async Task StartAsync(CancellationToken cancellationToken) { _messenger = _serviceProvider.GetRequiredService <IRabbitMQMessenger>(); await Task.CompletedTask; }
public void Start() => _messenger = _serviceProvider.GetRequiredService <IRabbitMQMessenger>();
public RabbitMQController(IRabbitMQMessenger rabbitmqMessagener) { _rabbitmqMessagener = rabbitmqMessagener; }