Class ResponseTypeAttribute
Sets preferred type of response for a message.
Namespace: TehGM.Wolfringo.Messages.Responses
Assembly: Wolfringo.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, AllowMultiple = false, Inherited = true)]
public class ResponseTypeAttribute : Attribute
Remarks
This attribute is honoured by ResponseTypeResolver. The default resolver will return type set by this attribute, regardless of the response type requested by user when sending the message.
Constructors
| Improve this Doc View SourceResponseTypeAttribute(Type)
Sets preferred type of response for a message.
Declaration
public ResponseTypeAttribute(Type responseType)
Parameters
Type | Name | Description |
---|---|---|
Type | responseType | Response type for the message. Must implement IWolfResponse in it's inheritance chain. |
Fields
| Improve this Doc View SourceBaseResponseType
Base type of all Wolf Responses.
Declaration
public static readonly Type BaseResponseType
Field Value
Type | Description |
---|---|
Type |
Remarks
Equals to IWolfResponse type.
Properties
| Improve this Doc View SourceResponseType
Preferred type of the response.
Declaration
public Type ResponseType { get; }
Property Value
Type | Description |
---|---|
Type |