void Microsoft.ServiceBus.IDirectConnectionControl.ConnectResponse(ConnectResponseMessage request)
        {
            DirectConnectionSession directConnectionSession;

            lock (this.ThisLock)
            {
                if (!this.connectionSessions.TryGetValue(request.Id, out directConnectionSession))
                {
                    throw Fx.Exception.AsError(new FaultException(SRClient.InvalidID), null);
                }
            }
            ((IDirectConnectionControl)directConnectionSession).ConnectResponse(request);
        }
Esempio n. 2
0
            public override void ConnectResponse(ConnectResponseMessage request)
            {
                Exception  exception;
                IPEndPoint endpoint = request.Addresses.GetEndpoint(AddressType.External);

                if (!this.ClientStartConnecting(ref this.localDerivedEndpoint.LocalEndpoint, endpoint, out exception))
                {
                    SocketException socketException = exception as SocketException;
                    if (socketException != null && socketException.ErrorCode == 10048)
                    {
                        this.localListener.Dispose();
                        this.ClientStartConnecting(ref this.localDerivedEndpoint.LocalEndpoint, endpoint, out exception);
                    }
                }
                IOThreadScheduler.ScheduleCallbackNoFlow(new Action <object>(this.WaitForTimeout), null);
            }
Esempio n. 3
0
 public virtual void ConnectResponse(ConnectResponseMessage request)
 {
     throw new FaultException(SRClient.InvalidCallFaultException);
 }
Esempio n. 4
0
 void Microsoft.ServiceBus.IDirectConnectionControl.ConnectResponse(ConnectResponseMessage request)
 {
     this.activity.ConnectResponse(request);
 }