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