Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HandlerFactory{TRequest}"/> class.
 /// </summary>
 /// <param name="attribute">The attribute.</param>
 /// <param name="factory">The factory.</param>
 /// <param name="requestContext">The request context.</param>
 public HandlerFactory(RequestHandlerAttribute attribute, IAmAHandlerFactory factory, IRequestContext requestContext)
 {
     this.attribute      = attribute;
     this.factory        = factory;
     this.requestContext = requestContext;
     messageType         = typeof(TRequest);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HandlerFactory{TRequest}"/> class.
 /// </summary>
 /// <param name="attribute">The attribute.</param>
 /// <param name="factory">The factory.</param>
 /// <param name="requestContext">The request context.</param>
 public HandlerFactory(RequestHandlerAttribute attribute, IAmAHandlerFactory factory, IRequestContext requestContext)
 {
     _attribute      = attribute;
     _factory        = factory;
     _requestContext = requestContext;
     _messageType    = typeof(TRequest);
 }