protected override Task ExecuteAsync(CancellationToken stoppingToken) { Activity.DefaultIdFormat = ActivityIdFormat.W3C; Publish(publisher); cronusHost.Start(); return(Task.CompletedTask); }
protected override async Task ExecuteAsync(CancellationToken stoppingToken) { _logger.LogInformation("Starting service..."); Activity.DefaultIdFormat = ActivityIdFormat.W3C; cronusHost.Start(); _logger.LogInformation("Service started"); }
protected override async Task ExecuteAsync(CancellationToken stoppingToken) { _logger.LogInformation("Starting service..."); cronusHost.Start(); _logger.LogInformation("Service started"); //Input number of messages and type of messages var list = CreateMessages <CreateEmptyMessage>(10_000); //Input list of commangs, batchSize and delay //If batch size is less than 1 all messages that will be sent together PublishCommandList(list, 1000, 10); }