Class ResponseTypeResolverExtensions
Extension methods for IResponseTypeResolver.
Namespace: TehGM.Wolfringo.Messages.Responses
Assembly: Wolfringo.Core.dll
Syntax
public static class ResponseTypeResolverExtensions
Methods
| Improve this Doc View SourceGetMessageResponseType<TFallbackType>(IResponseTypeResolver, IWolfMessage)
Gets response type for the message.
Declaration
public static Type GetMessageResponseType<TFallbackType>(this IResponseTypeResolver resolver, IWolfMessage message)
where TFallbackType : IWolfResponse
Parameters
Type | Name | Description |
---|---|---|
IResponseTypeResolver | resolver | Resolver to get type from. |
IWolfMessage | message | Sent message. |
Returns
Type | Description |
---|---|
Type | Type of the response. |
Type Parameters
Name | Description |
---|---|
TFallbackType | Type of response to use as fallback. |