Class ResponseTypeResolver
Utility class for selecting type of the response for a sent message.
Inheritance
System.Object
ResponseTypeResolver
Implements
Namespace: TehGM.Wolfringo.Messages.Responses
Assembly: Wolfringo.Core.dll
Syntax
public class ResponseTypeResolver : IResponseTypeResolver
Remarks
This default resolver makes use of ResponseTypeAttribute to check if message type has a preferred type of response. If so, this type will be returned.
Methods
| Improve this Doc View SourceGetMessageResponseType(Type, Type)
Gets response type for the message.
Declaration
public Type GetMessageResponseType(Type messageType, Type fallbackType = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | messageType | Sent message type. |
| System.Type | fallbackType | Type of response to use as fallback. |
Returns
| Type | Description |
|---|---|
| System.Type | Type of the response. |