public string GetInvitationString(int connectionID) { var response = screenShareComplexManager.GetInvitationString(connectionID); if (response.IsSuccess) { return(response.Explanation); } else { throw new System.Exception(response.Explanation); } }
private void getInvitationStringTimer_Tick(object sender, EventArgs e) { getInvitationStringTimer.Stop(); var response = screenShareManager.GetInvitationString(connectionID); if (response.IsSuccess) { InvitationString = response.Explanation; } else { throw new Exception(response.Explanation); } if (String.IsNullOrEmpty(InvitationString)) { getInvitationStringTimer.Start(); } else { pRdpViewer.Connect(InvitationString, "Viewer1", "Password"); } }