public BeginAuthenticateAsServer ( |
||
serverCertificate | ||
clientCertificateRequired | bool | |
checkCertificateRevocation | bool | |
asyncCallback | AsyncCallback | |
asyncState | object | |
return | IAsyncResult |
public virtual IAsyncResult BeginAuthenticateAsServer(X509Certificate serverCertificate, bool clientCertificateRequired,
bool checkCertificateRevocation, AsyncCallback asyncCallback, object asyncState)
{
return BeginAuthenticateAsServer(serverCertificate, clientCertificateRequired, SecurityProtocol.SystemDefaultSecurityProtocols, checkCertificateRevocation, asyncCallback, asyncState);
}
SslStream::BeginAuthenticateAsServer ( |
|
SslStream::BeginAuthenticateAsServer ( |
|
SslStream::BeginAuthenticateAsServer ( System serverCertificate, System asyncCallback, object asyncState ) : System.IAsyncResult | |
SslStream::BeginAuthenticateAsServer ( System serverCertificate, bool clientCertificateRequired, System enabledSslProtocols, bool checkCertificateRevocation, System asyncCallback, object asyncState ) : System.IAsyncResult | |
SslStream::BeginAuthenticateAsServer ( System serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation, System asyncCallback, object asyncState ) : System.IAsyncResult |
public void assign_without_subscribing_on_MessageReceived_means_that_messages_can_get_lost() { var slice = new BufferSlice(new byte[65535], 0, 65535); var encoder = Substitute.For<IMessageEncoder>(); var decoder = Substitute.For<IMessageDecoder>(); var stream = new SslStream(new NetworkStream(_helper.Server)); stream.BeginAuthenticateAsServer(_certificate, OnAuthenticated, stream); var sut = CreateClientChannel(slice, encoder, decoder); Action actual = () => sut.Assign(_helper.Client); actual.ShouldThrow<InvalidOperationException>(); }