示例#1
0
 public RedirectedIStorage(IMessagePassingEndpoint ep, TrinityClient tc, int p)
 {
     m_ep        = ep;
     m_comminst  = tc;
     partitionId = p;
     m_mod       = GetCommunicationModule <TrinityClientModule.TrinityClientModule>();
 }
示例#2
0
文件: SynReqArgs.cs 项目: d3m0n5/GDB
 /// <returns>
 /// E_SUCCESS:        The message is successfully processed.
 /// E_RPC_EXCEPTION:  The message handler throws an exception.
 /// </returns>
 internal TrinityErrorCode MessageProcess()
 {
     try
     {
         RequestHandler(this);
         return(TrinityErrorCode.E_SUCCESS);
     }
     catch (Exception e)
     {
         CommunicationInstance._RaiseUnhandledExceptionEvents(this, new MessagingUnhandledExceptionEventArgs(this, e));
         return(TrinityErrorCode.E_RPC_EXCEPTION);
     }
 }
示例#3
0
 private void MessageProcessProc()
 {
     try
     {
         RequestHandler(this);
     }
     catch (Exception e)
     {
         CommunicationInstance._RaiseUnhandledExceptionEvents(this, new MessagingUnhandledExceptionEventArgs(this, e));
     }
     finally
     {
         Memory.free(Buffer);
     }
 }