|
|
@@ -13,7 +13,7 @@ namespace Renci.SshNet
|
|
|
/// <summary>
|
|
|
/// Provides functionality to perform private key authentication.
|
|
|
/// </summary>
|
|
|
- public class PrivateKeyAuthenticationMethod : AuthenticationMethod, IDisposable
|
|
|
+ public class PrivateKeyAuthenticationMethod : AuthenticationMethod
|
|
|
{
|
|
|
private AuthenticationResult _authenticationResult = AuthenticationResult.Failure;
|
|
|
private EventWaitHandle _authenticationCompleted = new ManualResetEvent(initialState: false);
|
|
|
@@ -155,20 +155,8 @@ namespace Renci.SshNet
|
|
|
_ = _authenticationCompleted.Set();
|
|
|
}
|
|
|
|
|
|
- /// <summary>
|
|
|
- /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
|
- /// </summary>
|
|
|
- public void Dispose()
|
|
|
- {
|
|
|
- Dispose(disposing: true);
|
|
|
- GC.SuppressFinalize(this);
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- /// Releases unmanaged and - optionally - managed resources.
|
|
|
- /// </summary>
|
|
|
- /// <param name="disposing"><see langword="true"/> to release both managed and unmanaged resources; <see langword="false"/> to release only unmanaged resources.</param>
|
|
|
- protected virtual void Dispose(bool disposing)
|
|
|
+ /// <inheritdoc/>
|
|
|
+ protected override void Dispose(bool disposing)
|
|
|
{
|
|
|
if (_isDisposed)
|
|
|
{
|
|
|
@@ -186,6 +174,8 @@ namespace Renci.SshNet
|
|
|
|
|
|
_isDisposed = true;
|
|
|
}
|
|
|
+
|
|
|
+ base.Dispose(disposing);
|
|
|
}
|
|
|
|
|
|
private sealed class SignatureData : SshData
|