IBaseClient
Serves as base class for client implementations, provides common client functionality.
using Renci.SshNet.Common;
using System;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
namespace Renci.SshNet
{
[System.Runtime.CompilerServices.NullableContext(1)]
public interface IBaseClient : IDisposable
{
ConnectionInfo ConnectionInfo { get; }
bool IsConnected { get; }
TimeSpan KeepAliveInterval { get; set; }
event EventHandler<ExceptionEventArgs> ErrorOccurred;
event EventHandler<HostKeyEventArgs> HostKeyReceived;
[System.Runtime.CompilerServices.Nullable(new byte[] {
2,
1
})]
event EventHandler<SshIdentificationEventArgs> ServerIdentificationReceived;
void Connect();
Task ConnectAsync(CancellationToken cancellationToken);
void Disconnect();
void SendKeepAlive();
}
}