/// <summary> /// Handles the event raised when a conversation participant requests control of a locally owned resource. /// These requests always go to the resource owner, and not the current controller of the resource. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void OnSharingModalityControlRequestReceived(object sender, ControlRequestReceivedEventArgs e) { _log.Debug("OnSharingModalityControlRequestReceived"); //Get the name of the participant that is requesting control of the locally owned resource. string displayRequesterName = e.Requester.Contact.GetContactInformation(ContactInformationType.DisplayName).ToString(); //Store the Contact object for the requesting participant. _resourceControllingContact = e.Requester.Contact; }
/// <summary> /// Handles the event raised when a conversation participant requests control of a locally owned resource. /// These requests always go to the resource owner, and not the current controller of the resource. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void _sharingModality_ControlRequestReceived(object sender, ControlRequestReceivedEventArgs e) { //Get the name of the participant that is requesting control of the locally owned resource. string displayRequesterName = e.Requester.Contact.GetContactInformation(ContactInformationType.DisplayName).ToString(); //Update the text of the Accept button to include the name of the requester. this.Invoke(new ChangeButtonTextDelegate(ChangeButtonText), new object[] { Accept_Button, "Accept " + displayRequesterName + " Request" }); //Store the Contact object for the requesting participant. _ResourceControllingContact = e.Requester.Contact; }
static void applicationSharingModality_ControlRequestReceived(object sender, ControlRequestReceivedEventArgs e) { try { } catch (Exception ex) { LogManage.WriteLog(typeof(LyncHelper), ex); } finally { } }