protected override OutgoingMessage ProcessMessage(IncomingMessage request, ActionHeader actionHeader)
 {
     switch (actionHeader.Action)
     {
         case Constants.SubscribeAction:
             return Subscribe(request);
         case Constants.UnsubscribeAction:
             return Unsubscribe(request);
         case Constants.RenewAction:
             return Renew(request);
         default:
             return null;
     }
 }
 protected override OutgoingMessage ProcessMessage(IncomingMessage request, ActionHeader actionHeader)
 {
     switch (actionHeader.Action)
     {
         case Schema.InvokeAction:
             return Invoke(request);
         case Schema.GetMBeanInfoAction:
             return GetMBeanInfo(request);
         case Schema.InstanceOfAction:
             return IsInstanceOf(request);
         default:
             return null;
     }
 }
 protected override OutgoingMessage ProcessMessage(IncomingMessage request, ActionHeader actionHeader)
 {
     switch (actionHeader.Action)
     {
         case Constants.CreateAction:
             return Create(request);
         case Constants.GetAction:
             return Get(request);
         case Constants.PutAction:
             return Put(request);
         case Constants.DeleteAction:
             return Delete(request);
         default:
             return null;
     }
 }
 protected abstract OutgoingMessage ProcessMessage(IncomingMessage request, ActionHeader actionHeader);
 protected override OutgoingMessage ProcessMessage(IncomingMessage request, ActionHeader actionHeader)
 {
     return actionHeader.Action == Constants.EnumerateAction
         ? Enumerate(request)
         : PullServer.Handle(request);
 }
示例#6
0
 protected override OutgoingMessage ProcessMessage(IncomingMessage request, ActionHeader actionHeader)
 {
     return actionHeader.Action == Constants.PullAction 
         ? Pull(request) 
         : null;
 }