Esempio n. 1
0
 public RedirectedIStorage(IMessagePassingEndpoint ep, TrinityClient tc, int p)
 {
     m_ep        = ep;
     m_comminst  = tc;
     partitionId = p;
     m_mod       = GetCommunicationModule <TrinityClientModule.TrinityClientModule>();
 }
Esempio n. 2
0
 /// <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);
     }
 }
Esempio n. 3
0
 private void MessageProcessProc()
 {
     try
     {
         RequestHandler(this);
     }
     catch (Exception e)
     {
         CommunicationInstance._RaiseUnhandledExceptionEvents(this, new MessagingUnhandledExceptionEventArgs(this, e));
     }
     finally
     {
         Memory.free(Buffer);
     }
 }