/// <summary> /// Send the specified verbose record to client. /// </summary> /// <param name="record">Warning record.</param> internal void SendVerboseRecordToClient(VerboseRecord record) { record.SerializeExtendedInfo = (_streamSerializationOptions & RemoteStreamOptions.AddInvocationInfoToVerboseRecord) != 0; SendDataAsync(RemotingEncoder.GeneratePowerShellInformational( record, _clientRunspacePoolId, _clientPowerShellId, RemotingDataType.PowerShellVerbose)); }
internal void SendVerboseRecordToClient(VerboseRecord record) { using (ServerPowerShellDataStructureHandler.tracer.TraceMethod()) { record.SerializeExtendedInfo = (this.streamSerializationOptions & RemoteStreamOptions.AddInvocationInfoToVerboseRecord) != (RemoteStreamOptions)0; this.SendDataAsync(RemotingEncoder.GeneratePowerShellInformational((object)record, this.clientRunspacePoolId, this.clientPowerShellId, RemotingDataType.PowerShellVerbose)); } }
/// <summary> /// Send the specified information record to client. /// </summary> /// <param name="record">Information record.</param> internal void SendInformationRecordToClient(InformationRecord record) { SendDataAsync(RemotingEncoder.GeneratePowerShellInformational( record, _clientRunspacePoolId, _clientPowerShellId)); }
internal void SendWarningRecordToClient(WarningRecord record) { record.SerializeExtendedInfo = (this.streamSerializationOptions & RemoteStreamOptions.AddInvocationInfoToWarningRecord) != 0; this.SendDataAsync(RemotingEncoder.GeneratePowerShellInformational(record, this.clientRunspacePoolId, this.clientPowerShellId, RemotingDataType.PowerShellWarning)); }
internal void SendProgressRecordToClient(ProgressRecord record) { this.SendDataAsync(RemotingEncoder.GeneratePowerShellInformational(record, this.clientRunspacePoolId, this.clientPowerShellId)); }
internal void SendProgressRecordToClient(ProgressRecord record) { using (ServerPowerShellDataStructureHandler.tracer.TraceMethod()) this.SendDataAsync(RemotingEncoder.GeneratePowerShellInformational(record, this.clientRunspacePoolId, this.clientPowerShellId)); }