2017-01-31 11:01:08 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
2018-12-19 19:50:56 +00:00
|
|
|
|
namespace Tapeti.Annotations
|
2017-01-31 11:01:08 +00:00
|
|
|
|
{
|
2019-03-19 10:47:52 +00:00
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Can be attached to a message class to specify that the receiver of the message must
|
|
|
|
|
/// provide a response message of the type specified in the Response attribute. This response
|
|
|
|
|
/// must be sent by either returning it from the message handler method or using
|
2019-08-15 13:36:40 +00:00
|
|
|
|
/// EndWithResponse when using Tapeti Flow. These methods will respond directly
|
2019-03-19 10:47:52 +00:00
|
|
|
|
/// to the queue specified in the reply-to header automatically added by Tapeti.
|
|
|
|
|
/// </summary>
|
2017-02-15 21:05:01 +00:00
|
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
2017-01-31 11:01:08 +00:00
|
|
|
|
public class RequestAttribute : Attribute
|
|
|
|
|
{
|
2019-05-27 09:48:10 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The type of the message class which must be returned as the response.
|
|
|
|
|
/// </summary>
|
2017-01-31 11:01:08 +00:00
|
|
|
|
public Type Response { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|