public void ConnectToClient(string connectionString) { if (connectionString == null) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.BadRequest; throw new ArgumentNullException("connectionString"); } // check the permission and connect to the client DemandPermission(SessionRights.ConnectToClient); session.ConnectToClient(connectionString); }
/// <summary> /// Connects the viewer from the sharer in reverse connect mode if the viewer cannot connect to the sharer because /// of a network issue. For example, the viewer may not be able to connect to the sharer because of network address translation (NAT). /// </summary> /// <param name="connectionString">Connection string that the viewer sends to the sharer out-of-band through IM or email.</param> public void ConnectToClient(string connectionString) { _rdpSession.ConnectToClient(connectionString); }