示例#1
0
            private static void OnReadPreambleAck(object state)
            {
                bool flag;

                Microsoft.ServiceBus.Channels.ClientFramingDuplexSessionChannel.SendPreambleAsyncResult sendPreambleAsyncResult = (Microsoft.ServiceBus.Channels.ClientFramingDuplexSessionChannel.SendPreambleAsyncResult)state;
                Exception exception = null;

                try
                {
                    flag = sendPreambleAsyncResult.HandlePreambleAck();
                }
                catch (Exception exception2)
                {
                    Exception exception1 = exception2;
                    if (Fx.IsFatal(exception1))
                    {
                        throw;
                    }
                    flag      = true;
                    exception = exception1;
                }
                if (flag)
                {
                    sendPreambleAsyncResult.Complete(false, exception);
                }
            }