C# Class System.Net.Security.Tests.DummyTcpServer

Inheritance: IDisposable
Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
AlwaysValidServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
Dispose ( ) : void
DummyTcpServer ( IPEndPoint endPoint ) : System.IO
DummyTcpServer ( IPEndPoint endPoint, EncryptionPolicy sslEncryptionPolicy ) : System.IO

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnClientAccepted ( TcpClient client ) : void

Private Methods

Method Description
OnAccept ( Task result ) : void
OnAuthenticate ( Task result, ClientState state ) : void
OnReceive ( IAsyncResult result ) : void
StartListener ( IPEndPoint endPoint ) : void

Method Details

AlwaysValidServerCertificate() public static method

public static AlwaysValidServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
sender object
certificate System.Security.Cryptography.X509Certificates.X509Certificate
chain System.Security.Cryptography.X509Certificates.X509Chain
sslPolicyErrors SslPolicyErrors
return bool

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DummyTcpServer() public method

public DummyTcpServer ( IPEndPoint endPoint ) : System.IO
endPoint IPEndPoint
return System.IO

DummyTcpServer() public method

public DummyTcpServer ( IPEndPoint endPoint, EncryptionPolicy sslEncryptionPolicy ) : System.IO
endPoint IPEndPoint
sslEncryptionPolicy EncryptionPolicy
return System.IO

OnClientAccepted() protected method

protected OnClientAccepted ( TcpClient client ) : void
client System.Net.Sockets.TcpClient
return void