void Microsoft.ServiceBus.IDirectConnectionControl.SwitchRoles(SwitchRolesMessage 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).SwitchRoles(request); }
public override void SwitchRoles(SwitchRolesMessage request) { base.Session.StartActivity(new DirectConnectionSession.ConnectActivity(base.Session)); }
public virtual void SwitchRoles(SwitchRolesMessage request) { throw new FaultException(SRClient.InvalidCallFaultException); }
void Microsoft.ServiceBus.IDirectConnectionControl.SwitchRoles(SwitchRolesMessage request) { this.activity.SwitchRoles(request); }