Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ internal InvalidJobStateException(JobState currentState)
/// The <see cref="StreamingContext"/> that contains contextual information
/// about the source or destination.
/// </param>
[Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId = "SYSLIB0051")]
[Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId = "SYSLIB0051")]
protected
InvalidJobStateException(SerializationInfo info, StreamingContext context)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2150,7 +2150,7 @@ public JobFailedException(Exception innerException, ScriptExtent displayScriptPo
/// </summary>
/// <param name="serializationInfo">Serialization info.</param>
/// <param name="streamingContext">Streaming context.</param>
[Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId = "SYSLIB0051")]
[Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId = "SYSLIB0051")]
protected JobFailedException(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
throw new NotSupportedException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ internal void AddChildJobWithoutBlocking(StartableJob childJob, ChildJobFlags fl
{
throw new ArgumentException(RemotingErrorIdStrings.ThrottlingJobChildAlreadyRunning, nameof(childJob));
}

this.AssertNotDisposed();

JobStateInfo newJobStateInfo = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ public override string Subsystem
public override int ConnectingTimeout
{
get { return base.ConnectingTimeout; }

set { base.ConnectingTimeout = value; }
}

Expand Down Expand Up @@ -800,12 +800,12 @@ public override Hashtable[] SSHConnection
[ValidateNotNullOrEmpty]
public override Hashtable Options
{
get
get
{
return base.Options;
}

set
set
{
base.Options = value;
}
Expand Down Expand Up @@ -1249,7 +1249,7 @@ protected override void EndProcessing()
WriteJobResults(false);

// Dispose job object if it is not returned to the user.
// The _asjob field can change dynamically and needs to be checked before the job
// The _asjob field can change dynamically and needs to be checked before the job
// object is disposed. For example, if remote sessions are disconnected abruptly
// via WinRM, a disconnected job object is created to facilitate a reconnect.
// If the job object is disposed here, then a session reconnect cannot happen.
Expand Down Expand Up @@ -1303,7 +1303,7 @@ protected override void EndProcessing()
WriteJobResults(false);

// Dispose job object if it is not returned to the user.
// The _asjob field can change dynamically and needs to be checked before the job
// The _asjob field can change dynamically and needs to be checked before the job
// object is disposed. For example, if remote sessions are disconnected abruptly
// via WinRM, a disconnected job object is created to facilitate a reconnect.
// If the job object is disposed here, then a session reconnect cannot happen.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ public class EnterPSSessionCommand : PSRemotingBaseCmdlet
/// </summary>
[Parameter(ParameterSetName = PSRemotingBaseCmdlet.SSHHostParameterSet)]
[ValidateNotNullOrEmpty]
public override Hashtable Options
{
get
public override Hashtable Options
{
get
{
return base.Options;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ protected override void EndProcessing()
_waitForJobs.WaitOne();
}

if (_warnInvalidState)
if (_warnInvalidState)
{
WriteWarning(RemotingErrorIdStrings.SuspendJobInvalidJobState);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2245,7 +2245,7 @@ internal int StartSSHProcess(
}
}
}

if (string.IsNullOrEmpty(filePath))
{
throw new CommandNotFoundException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public enum TransportMethodEnum
/// ReconnectShellEx
/// </summary>
ReconnectShellEx = 8,

/// <summary>
/// ConnectShellEx
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2084,7 +2084,7 @@ private static void OnRemoteSessionDisconnectCompleted(IntPtr operationContext,
sessionTM.EnqueueAndStartProcessingThread(null, null,
new CompletionEventArgs(CompletionNotification.DisconnectCompleted));

// Log ETW traces
// Log ETW traces
PSEtwLog.LogAnalyticInformational(
PSEventId.WSManCloseShellCallbackReceived,
PSOpcode.Disconnect,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ private void HandleCreateRunspacePool(object sender, RemoteDataEventArgs createR
// This parameter is only used by Out-Of-Proc transports (not WinRM transports).
var discConfiguration = new Remoting.DISCPowerShellConfiguration(
configFile: _configurationFile,
roleVerifier: null,
roleVerifier: null,
validateFile: true);
rsSessionStateToUse = discConfiguration.GetInitialSessionState(_senderInfo);
}
Expand Down
Loading