Пример #1
0
        private void RegisterResponders(CancellationToken cancellationToken)
        {
            _logger.LogInformation("Registering responders.");

            _subscriptions.Add(
                _comm.Bus.RespondAsync <WorkerJobRequest, WorkerJobResponse>(request =>
                                                                             Task.Factory.StartNew(() => JobRunner.ExecuteJob(_logger, request))));
        }