C# Class Halibut.Transport.SecureListener

Exibir arquivo Open project: OctopusDeploy/Halibut

Public Methods

Method Description
Dispose ( ) : void
SecureListener ( IPEndPoint endPoint, X509Certificate2 serverCertificate, Action protocolHandler, Predicate verifyClientThumbprint, ILogFactory logFactory, Func getFriendlyHtmlPageContent ) : System
Start ( ) : int

Private Methods

Method Description
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

Method Details

Dispose() public method

public Dispose ( ) : void
return void

SecureListener() public method

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
return System

Start() public method

public Start ( ) : int
return int