コード例 #1
0
 public void OnNegotiationSucceed(IPrincipal principal)
 {
     MessagingClientEtwProvider.TraceClient <SaslTransport>((SaslTransport source) => MessagingClientEtwProvider.Provider.EventWriteAmqpLogOperation(source, TraceOperation.Execute, "OnNegotiationSucceed"), this);
     this.negotiator = null;
     base.Principal  = principal;
     base.CompleteOpen(false, null);
 }
コード例 #2
0
ファイル: SaslTransport.cs プロジェクト: tralivali1234/IL2JS
 public void OnNegotiationSucceed(IPrincipal principal)
 {
     Utils.Trace(TraceLevel.Verbose, "{0}: negotiation succeed", this);
     this.negotiator = null;
     this.Principal  = principal;
     this.CompleteOpen(false, null);
 }
コード例 #3
0
 public void OnNegotiationFail(Exception exception)
 {
     MessagingClientEtwProvider.TraceClient <SaslTransport, Exception>((SaslTransport source, Exception ex) => MessagingClientEtwProvider.Provider.EventWriteAmqpLogError(source, "OnNegotiationFail", ex.Message), this, exception);
     this.negotiator = null;
     this.innerTransport.SafeClose(exception);
     base.CompleteOpen(false, exception);
 }
コード例 #4
0
ファイル: SaslTransport.cs プロジェクト: tralivali1234/IL2JS
 public void OnNegotiationFail(Exception exception)
 {
     Utils.Trace(TraceLevel.Error, "{0}: negotiation fail with {1}", this, exception);
     this.negotiator = null;
     this.innerTransport.TryClose(exception);
     this.CompleteOpen(false, exception);
 }
コード例 #5
0
ファイル: SaslTransport.cs プロジェクト: modulexcite/IL2JS
 public void OnNegotiationFail(Exception exception)
 {
     Utils.Trace(TraceLevel.Error, "{0}: negotiation fail with {1}", this, exception);
     this.negotiator = null;
     this.innerTransport.TryClose(exception);
     this.CompleteOpen(false, exception);
 }
コード例 #6
0
ファイル: SaslTransport.cs プロジェクト: modulexcite/IL2JS
 public void OnNegotiationSucceed(IPrincipal principal)
 {
     Utils.Trace(TraceLevel.Verbose, "{0}: negotiation succeed", this);
     this.negotiator = null;
     this.Principal = principal;
     this.CompleteOpen(false, null);
 }
コード例 #7
0
 public void Start(SaslNegotiator saslNegotiator, SaslInit init, bool isClient)
 {
     this.saslNegotiator = saslNegotiator;
     try
     {
         this.OnStart(init, isClient);
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         if (Fx.IsFatal(exception))
         {
             throw;
         }
         this.saslNegotiator.CompleteNegotiation(SaslCode.Sys, exception);
     }
 }
コード例 #8
0
ファイル: SaslHandler.cs プロジェクト: modulexcite/IL2JS
        public void Start(SaslNegotiator saslNegotiator, SaslInit init, bool isClient)
        {
            this.saslNegotiator = saslNegotiator;

            try
            {
                this.OnStart(init, isClient);
            }
            catch (Exception exception)
            {
                if (Fx.IsFatal(exception))
                {
                    throw;
                }

                this.saslNegotiator.CompleteNegotiation(SaslCode.Sys, exception);
            }
        }
コード例 #9
0
        private static void OnWriteFrameComplete(TransportAsyncCallbackArgs args)
        {
            SaslNegotiator userToken = (SaslNegotiator)args.UserToken;

            if (args.Exception != null)
            {
                userToken.HandleException("OnWriteFrameComplete", args.Exception);
                return;
            }
            if ((bool)args.UserToken2)
            {
                userToken.ReadFrame();
                return;
            }
            if (userToken.state == SaslNegotiator.SaslState.End)
            {
                userToken.CompleteTransport();
            }
        }
コード例 #10
0
 public SaslTransport(TransportBase transport, SaslTransportProvider provider, bool isInitiator) : base("sasl")
 {
     this.innerTransport = transport;
     this.negotiator     = new SaslNegotiator(this, provider, isInitiator);
 }
コード例 #11
0
ファイル: SaslTransport.cs プロジェクト: tralivali1234/IL2JS
 protected override bool OpenInternal()
 {
     this.negotiator = new SaslNegotiator(this, this.provider);
     return(this.negotiator.Start());
 }
コード例 #12
0
ファイル: SaslTransport.cs プロジェクト: modulexcite/IL2JS
 protected override bool OpenInternal()
 {
     this.negotiator = new SaslNegotiator(this, this.provider);
     return this.negotiator.Start();
 }