public void ReadOnly(Message message)
 {
     try
     {
         if (DebugTrace.Verbose)
         {
             DebugTrace.Trace(TraceLevel.Verbose, "Dispatching 2PC ReadOnly message");
             if (DebugTrace.Pii)
             {
                 DebugTrace.TracePii(TraceLevel.Verbose, "Sender is {0}", CoordinationServiceSecurity.GetSenderName(message));
             }
         }
         ReadOnlyMessage.ReadFrom(message, this.protocolVersion);
         this.dispatch.ReadOnly(message);
     }
     catch (CommunicationException exception)
     {
         Microsoft.Transactions.Bridge.DiagnosticUtility.ExceptionUtility.TraceHandledException(exception, TraceEventType.Warning);
         base.OnMessageException(message, exception);
     }
     catch (Exception exception2)
     {
         DebugTrace.Trace(TraceLevel.Error, "Unhandled exception {0} dispatching 2PC ReadOnly message: {1}", exception2.GetType().Name, exception2);
         Microsoft.Transactions.Bridge.DiagnosticUtility.InvokeFinalHandler(exception2);
     }
 }
Пример #2
0
        public IAsyncResult BeginSendReadOnly(AsyncCallback callback, object state)
        {
            Message message = new ReadOnlyMessage(base.messageVersion, base.protocolVersion);

            return(base.BeginSendMessage(message, callback, state));
        }