Exemple #1
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);
     }
 }
Exemple #2
0
 private void MessageProcessProc()
 {
     try
     {
         RequestHandler(this);
     }
     catch (Exception e)
     {
         CommunicationInstance._RaiseUnhandledExceptionEvents(this, new MessagingUnhandledExceptionEventArgs(this, e));
     }
     finally
     {
         Memory.free(Buffer);
     }
 }