Class ICommandResponseExtensions
Provides extension methods for command responses.
public static class ICommandResponseExtensions
- Inheritance
-
ICommandResponseExtensions
- Inherited Members
Methods
GetResponse<TCommandResponse>(ICommandResponse)
Returns the strongly-typed response for an object impelementing the ICommandResponse interface.
public static TCommandResponse GetResponse<TCommandResponse>(this ICommandResponse response) where TCommandResponse : class, ICommandResponse
Parameters
response
ICommandResponseThe ICommandResponse object to convert to the implementation type
Returns
- TCommandResponse
The concrete implementation of the command response.
Type Parameters
TCommandResponse
The concrete implementation type of command response expected.