コード例 #1
0
        private async Task <Unit> HandleError(PowershellFailure failure, IOperationTaskMessage command)
        {
            await _bus.Publish(OperationTaskStatusEvent.Failed(command.OperationId, command.TaskId,
                                                               new ErrorData {
                ErrorMessage = failure.Message
            })).ConfigureAwait(false);

            return(Unit.Default);
        }
コード例 #2
0
        private async Task <Unit> HandleError(PowershellFailure failure)
        {
            await _bus.Send(new OperationFailedEvent()
            {
                OperationId  = _operationId,
                ErrorMessage = failure.Message,
            }).ConfigureAwait(false);

            return(Unit.Default);
        }