public Task StartAsync(CancellationToken cancellationToken) { //Realizar bind do consummo da fila _subscriber.StartConsume <TesteMessage>(ConsumeTesteMessage); return(Task.CompletedTask); }
protected override Task ExecuteAsync(CancellationToken stoppingToken) { _subscriber.StartConsume <TesteMessage>(ConsumeTesteMessage); return(Task.CompletedTask); }
protected override Task ExecuteAsync(CancellationToken stoppingToken) { //Realizar bind do consummo da fila _subscriber.StartConsume <TransactionEvent>(ConsumeEvent); return(Task.CompletedTask); }