Granados.SSH2.SSH2ConnectionInfo.GetSSHHostKeyInformationProvider C# (CSharp) Method

GetSSHHostKeyInformationProvider() public method

Get an object that provides informations about a host key.
public GetSSHHostKeyInformationProvider ( ) : ISSHHostKeyInformationProvider
return ISSHHostKeyInformationProvider
        public ISSHHostKeyInformationProvider GetSSHHostKeyInformationProvider()
        {
            if (HostName == null) {
                throw new InvalidOperationException("HostName is null.");
            }
            if (HostKey == null) {
                throw new InvalidOperationException("HostKey is null.");
            }
            return new SSH2HostKeyInformationProvider(HostName, PortNumber, HostKey);
        }