C# Класс Halibut.Transport.SecureListener

Показать файл Открыть проект

Открытые методы

Метод Описание
Dispose ( ) : void
SecureListener ( IPEndPoint endPoint, X509Certificate2 serverCertificate, Action protocolHandler, Predicate verifyClientThumbprint, ILogFactory logFactory, Func getFriendlyHtmlPageContent ) : System
Start ( ) : int

Приватные методы

Метод Описание
Accept ( ) : Task
AcceptAnySslCertificate ( object sender, X509Certificate clientCertificate, X509Chain chain, SslPolicyErrors sslpolicyerrors ) : bool
Authorize ( SslStream stream, EndPoint clientName ) : bool
EnsureCertificateIsValidForListening ( X509Certificate2 certificate ) : void
ExchangeMessages ( SslStream stream ) : void
ExecuteRequest ( TcpClient client ) : void
HandleClient ( TcpClient client ) : void
ReadInitialRequest ( Stream stream ) : string
SendFriendlyHtmlPage ( Stream stream ) : void
SetHandleInformation ( IntPtr hObject, HANDLE_FLAGS dwMask, HANDLE_FLAGS dwFlags ) : bool

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

SecureListener() публичный Метод

public SecureListener ( IPEndPoint endPoint, X509Certificate2 serverCertificate, Action protocolHandler, Predicate verifyClientThumbprint, ILogFactory logFactory, Func getFriendlyHtmlPageContent ) : System
endPoint System.Net.IPEndPoint
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
protocolHandler Action
verifyClientThumbprint Predicate
logFactory ILogFactory
getFriendlyHtmlPageContent Func
Результат System

Start() публичный Метод

public Start ( ) : int
Результат int