private MessageResult OnInformation(Deployment.WindowsInstaller.Record record) { if (null != record) { string message = record.ToString(); if (!string.IsNullOrEmpty(message)) { var ice = new IceMessage(message); var obj = PSObject.AsPSObject(ice); if (!string.IsNullOrEmpty(this.CurrentPath)) { ice.Path = this.CurrentPath; // Set the PSPath for cmdlets that would use it. string path = this.SessionState.Path.GetUnresolvedPSPathFromProviderPath(this.CurrentPath); obj.SetPropertyValue <string>("PSPath", path); } var data = new Data(DataType.Information, obj); this.Output.Enqueue(data); } } return(MessageResult.OK); }
/// <summary> /// Callback invoked when an ICE candidate message has been generated and is ready to /// be sent to the remote peer by the signaling object. /// </summary> /// <param name="candidate"></param> /// <param name="sdpMlineIndex"></param> /// <param name="sdpMid"></param> protected virtual void OnIceCandidateReadyToSend(string candidate, int sdpMlineIndex, string sdpMid) { var message = new IceMessage(sdpMid, sdpMlineIndex, candidate); SendMessageAsync(message); }
private MessageResult OnInformation(Deployment.WindowsInstaller.Record record) { if (null != record) { string message = record.ToString(); if (!string.IsNullOrEmpty(message)) { var ice = new IceMessage(message); var obj = PSObject.AsPSObject(ice); if (!string.IsNullOrEmpty(this.CurrentPath)) { ice.Path = this.CurrentPath; // Set the PSPath for cmdlets that would use it. string path = this.SessionState.Path.GetUnresolvedPSPathFromProviderPath(this.CurrentPath); obj.SetPropertyValue<string>("PSPath", path); } var data = new Data(DataType.Information, obj); this.Output.Enqueue(data); } } return MessageResult.OK; }