Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ dotnet_diagnostic.CA1852.severity = none
# CA1859: Change return type for improved performance
#
# By default, this diagnostic is only reported for private members.
dotnet_code_quality.CA1859.api_surface = all
dotnet_code_quality.CA1859.api_surface = private,internal

# CA2208: Instantiate argument exceptions correctly
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2208
Expand Down
29 changes: 0 additions & 29 deletions src/Renci.SshNet/Channels/ChannelSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,35 +274,6 @@ public bool SendSignalRequest(string signalName)
return true;
}

/// <summary>
/// Sends the exit status request.
/// </summary>
/// <param name="exitStatus">The exit status.</param>
/// <returns>
/// <see langword="true"/> if request was successful; otherwise <see langword="false"/>.
/// </returns>
public bool SendExitStatusRequest(uint exitStatus)
{
SendMessage(new ChannelRequestMessage(RemoteChannelNumber, new ExitStatusRequestInfo(exitStatus)));
return true;
}

/// <summary>
/// Sends the exit signal request.
/// </summary>
/// <param name="signalName">Name of the signal.</param>
/// <param name="coreDumped">if set to <see langword="true"/> [core dumped].</param>
/// <param name="errorMessage">The error message.</param>
/// <param name="language">The language.</param>
/// <returns>
/// <see langword="true"/> if request was successful; otherwise <see langword="false"/>.
/// </returns>
public bool SendExitSignalRequest(string signalName, bool coreDumped, string errorMessage, string language)
{
SendMessage(new ChannelRequestMessage(RemoteChannelNumber, new ExitSignalRequestInfo(signalName, coreDumped, errorMessage, language)));
return true;
}

/// <summary>
/// Sends [email protected] request.
/// </summary>
Expand Down
21 changes: 0 additions & 21 deletions src/Renci.SshNet/Channels/IChannelSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,27 +120,6 @@ bool SendPseudoTerminalRequest(string environmentVariable,
/// </returns>
bool SendSignalRequest(string signalName);

/// <summary>
/// Sends the exit status request.
/// </summary>
/// <param name="exitStatus">The exit status.</param>
/// <returns>
/// <see langword="true"/> if request was successful; otherwise <see langword="false"/>.
/// </returns>
bool SendExitStatusRequest(uint exitStatus);

/// <summary>
/// Sends the exit signal request.
/// </summary>
/// <param name="signalName">Name of the signal.</param>
/// <param name="coreDumped">if set to <see langword="true"/> [core dumped].</param>
/// <param name="errorMessage">The error message.</param>
/// <param name="language">The language.</param>
/// <returns>
/// <see langword="true"/> if request was successful; otherwise <see langword="false"/>.
/// </returns>
bool SendExitSignalRequest(string signalName, bool coreDumped, string errorMessage, string language);

/// <summary>
/// Sends [email protected] request.
/// </summary>
Expand Down
10 changes: 0 additions & 10 deletions src/Renci.SshNet/CommandAsyncResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,5 @@ internal CommandAsyncResult()
/// true if the operation is complete; otherwise, false.
/// </returns>
public bool IsCompleted { get; internal set; }

/// <summary>
/// Gets or sets a value indicating whether <see cref="SshCommand.EndExecute(IAsyncResult)"/> was already called for this
/// <see cref="CommandAsyncResult"/>.
/// </summary>
/// <returns>
/// <see langword="true"/> if <see cref="SshCommand.EndExecute(IAsyncResult)"/> was already called for this <see cref="CommandAsyncResult"/>;
/// otherwise, <see langword="false"/>.
/// </returns>
internal bool EndCalled { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/Renci.SshNet/SshClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public SshCommand CreateCommand(string commandText, Encoding encoding)
EnsureSessionIsOpen();

ConnectionInfo.Encoding = encoding;
return new SshCommand(Session, commandText, encoding);
return new SshCommand(Session!, commandText, encoding);
}

/// <summary>
Expand Down
Loading