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); }
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); }
public virtual void ConnectResponse(ConnectResponseMessage request) { throw new FaultException(SRClient.InvalidCallFaultException); }
void Microsoft.ServiceBus.IDirectConnectionControl.ConnectResponse(ConnectResponseMessage request) { this.activity.ConnectResponse(request); }