Table of Contents

Class CommandResult<T>

Namespace
Cratis.Applications.Commands
Assembly
Cratis.Applications.dll

Represents the result coming from executing a command with a response.

public class CommandResult<T> : CommandResult

Type Parameters

T

Type of the data returned.

Inheritance
CommandResult<T>
Inherited Members

Fields

Success

Represents a successful command result.

public static readonly CommandResult<T> Success

Field Value

CommandResult<T>

Properties

Response

Optional response object. Controller actions representing a command can optionally return a response as any type, this is where it would be.

public T? Response { get; init; }

Property Value

T