Exemplo n.º 1
0
        private async Task ExecuteInSequenceSync(WorkerTask workerTask)
        {
            try
            {
                var response = await workerTask.ExecuteFor(_activityHost);

                await _activityHost.SendAsync(response);
            }
            catch (Exception exception)
            {
                _activityHost.Fault(exception);
            }
        }
Exemplo n.º 2
0
        private async Task ExecuteInSequenceAsync(WorkerTask workerTask)
        {
            try
            {
                IHostedActivities hostedActivities = _activityHost;
                var response = await workerTask.ExecuteFor(hostedActivities);

                await _activityHost.SendAsync(workerTask.Token, response);
            }
            catch (Exception exception)
            {
                _activityHost.Fault(exception);
            }
        }