Show / Hide Table of Contents

Class CommandResult<TResult>

Represents a command system result with a wrapped result from the handlers

Inheritance
System.Object
CommandResult
CommandResult<TResult>
Inherited Members
CommandResult.DeferExecution
Namespace: AzureFromTheTrenches.Commanding.Abstractions.Model
Assembly: AzureFromTheTrenches.Commanding.Abstractions.dll
Syntax
public sealed class CommandResult<TResult> : CommandResult
Type Parameters
Name Description
TResult

Constructors

| Improve this Doc View Source

CommandResult(TResult, Boolean)

Constructor

Declaration
public CommandResult(TResult result, bool deferExecution)
Parameters
Type Name Description
TResult result

The result from the execution stage

System.Boolean deferExecution

Was execution deferred

Properties

| Improve this Doc View Source

Result

The result of the command execution

Declaration
public TResult Result { get; }
Property Value
Type Description
TResult

Operators

| Improve this Doc View Source

Implicit(CommandResult<TResult> to TResult)

Implicit cast that auto-casts the command result to the wrapped result type.

Declaration
public static implicit operator TResult(CommandResult<TResult> commandResult)
Parameters
Type Name Description
CommandResult<TResult> commandResult

The command result

Returns
Type Description
TResult
  • Improve this Doc
  • View Source
  • 0 Comments
Back to top Copyright © 2018 James Randall