Class ResponseSubscriptionEventArgs<TRequest, TResponse>
Provides data for the ResponseReceived event.
public class ResponseSubscriptionEventArgs<TRequest, TResponse> : EventArgs where TRequest : _IRequest<TRequest, TResponse> where TResponse : class
Type Parameters
TRequestThe type of the original request that generated this response.
TResponseThe type of the response.
- Inheritance
-
ResponseSubscriptionEventArgs<TRequest, TResponse>
- Inherited Members
Constructors
ResponseSubscriptionEventArgs(CarrotResponse<TRequest, TResponse>, ConsumerContext)
public ResponseSubscriptionEventArgs(CarrotResponse<TRequest, TResponse> response, ConsumerContext consumerContext)
Parameters
responseCarrotResponse<TRequest, TResponse>consumerContextConsumerContext
Properties
ConsumerContext
public ConsumerContext ConsumerContext { get; }
Property Value
Response
CarrotMQ response message
public CarrotResponse<TRequest, TResponse> Response { get; }
Property Value
- CarrotResponse<TRequest, TResponse>