internal static RemoteDataObject GeneratePowerShellInformational( ProgressRecord progressRecord, Guid clientRunspacePoolId, Guid clientPowerShellId) { using (RemotingEncoder._trace.TraceMethod()) { if (progressRecord == null) { throw RemotingEncoder._trace.NewArgumentNullException(nameof(progressRecord)); } return(RemoteDataObject.CreateFrom(RemotingDestination.Client, RemotingDataType.PowerShellProgress, clientRunspacePoolId, clientPowerShellId, (object)progressRecord.ToPSObjectForRemoting())); } }
internal static RemoteDataObject GeneratePowerShellInformational(ProgressRecord progressRecord, Guid clientRunspacePoolId, Guid clientPowerShellId) { if (progressRecord == null) { throw PSTraceSource.NewArgumentNullException("progressRecord"); } return(RemoteDataObject.CreateFrom(RemotingDestination.InvalidDestination | RemotingDestination.Client, RemotingDataType.PowerShellProgress, clientRunspacePoolId, clientPowerShellId, progressRecord.ToPSObjectForRemoting())); }