Esempio n. 1
0
 internal void HandleSpecialMessage(SpecificMessageHandlerType type, Action <Action <IResolverContext> > contextProvider)
 {
     if (specificMessages.ContainsKey(type))
     {
         foreach (var data in specificMessages[type])
         {
             contextProvider(delegate(IResolverContext context) {
                 ApplyMiddlewares(data.middlewares, delegate(IResolverContext processedContext) {
                     data.provider().Handle(processedContext);
                 }, context);
             });
         }
     }
 }
Esempio n. 2
0
 public SpecialMessageHandlerItem(SpecificMessageHandlerType messageType, Func <PXMessageHandlerBase <PXMessageVoid> > provider) : base()
 {
     this.MessageType = messageType;
     this.Provider    = provider;
 }