Class CommandResult<TResult>
Represents a command system result with a wrapped result from the handlers
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 SourceCommandResult(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 SourceResult
The result of the command execution
Declaration
public TResult Result { get; }
Property Value
| Type | Description |
|---|---|
| TResult |
Operators
| Improve this Doc View SourceImplicit(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 |