Example #1
0
 internal RequestContext(TRequest message, Session session, OperationDescription operationDescription, HandlerDescription handlerDescription)
 {
     Message = message;
     Session = session;
     OperationDescription = operationDescription;
     HandlerDescription   = handlerDescription;
 }
 public void Register(Type operation, HandlerDescription handler)
 {
     if (_freezee)
     {
         throw new InvalidOperationException($"{typeof(DescriptionRuntimeModel)} is freeze. Use Register before first user GetByOperation");
     }
     _descriptions.Add(operation, handler);
 }