Method GetMessage
GetMessage<T>()
Gets the deserialized message as the specified type.
public T GetMessage<T>() where T : notnull
Returns
- T
Type Parameters
T
Exceptions
- InvalidOperationException
Thrown if the message is not available or not of the expected type.