C# Class PRI.ProductivityExtensions.SslStreamExtensions.SslStreamable

Class that contains extension methods that extend SslStream
显示文件 Open project: peteraritchie/ProductivityExtensions

Public Methods

Method Description
BeginAuthenticateAsClient ( this sslstream, String targetHost, AsyncCallback asyncCallback ) : IAsyncResult

Extends BeginAuthenticateAsClient so that when a state object is not needed, null does not need to be passed. sslstream.BeginAuthenticateAsClient(targetHost, asyncCallback);

BeginAuthenticateAsClient ( this sslstream, String targetHost, System clientCertificates, System enabledSslProtocols, System.Boolean checkCertificateRevocation, AsyncCallback asyncCallback ) : IAsyncResult

Extends BeginAuthenticateAsClient so that when a state object is not needed, null does not need to be passed. sslstream.BeginAuthenticateAsClient(targetHost, clientCertificates, enabledSslProtocols, checkCertificateRevocation, asyncCallback);

BeginAuthenticateAsServer ( this sslstream, System serverCertificate, AsyncCallback asyncCallback ) : IAsyncResult

Extends BeginAuthenticateAsServer so that when a state object is not needed, null does not need to be passed. sslstream.BeginAuthenticateAsServer(serverCertificate, asyncCallback);

BeginAuthenticateAsServer ( this sslstream, System serverCertificate, System.Boolean clientCertificateRequired, System enabledSslProtocols, System.Boolean checkCertificateRevocation, AsyncCallback asyncCallback ) : IAsyncResult

Extends BeginAuthenticateAsServer so that when a state object is not needed, null does not need to be passed. sslstream.BeginAuthenticateAsServer(serverCertificate, clientCertificateRequired, enabledSslProtocols, checkCertificateRevocation, asyncCallback);

BeginRead ( this sslstream, Byte buffer, AsyncCallback asyncCallback ) : IAsyncResult

Extends BeginRead so that buffer offset of 0 and call to Array.Length are not needed. sslstream.BeginRead(buffer, asyncCallback);

BeginRead ( this sslstream, Byte buffer, Int32 offset, Int32 count, AsyncCallback asyncCallback ) : IAsyncResult

Extends BeginRead so that when a state object is not needed, null does not need to be passed. sslstream.BeginRead(buffer, offset, count, asyncCallback);

BeginWrite ( this sslstream, Byte buffer, AsyncCallback asyncCallback ) : IAsyncResult

Extends BeginWrite so that buffer offset of 0 and call to Array.Length are not needed. sslstream.BeginWrite(buffer, asyncCallback);

BeginWrite ( this sslstream, Byte buffer, Int32 offset, Int32 count, AsyncCallback asyncCallback ) : IAsyncResult

Extends BeginWrite so that when a state object is not needed, null does not need to be passed. sslstream.BeginWrite(buffer, offset, count, asyncCallback);

Method Details

BeginAuthenticateAsClient() public static method

Extends BeginAuthenticateAsClient so that when a state object is not needed, null does not need to be passed. sslstream.BeginAuthenticateAsClient(targetHost, asyncCallback);
public static BeginAuthenticateAsClient ( this sslstream, String targetHost, AsyncCallback asyncCallback ) : IAsyncResult
sslstream this
targetHost String
asyncCallback AsyncCallback
return IAsyncResult

BeginAuthenticateAsClient() public static method

Extends BeginAuthenticateAsClient so that when a state object is not needed, null does not need to be passed. sslstream.BeginAuthenticateAsClient(targetHost, clientCertificates, enabledSslProtocols, checkCertificateRevocation, asyncCallback);
public static BeginAuthenticateAsClient ( this sslstream, String targetHost, System clientCertificates, System enabledSslProtocols, System.Boolean checkCertificateRevocation, AsyncCallback asyncCallback ) : IAsyncResult
sslstream this
targetHost String
clientCertificates System
enabledSslProtocols System
checkCertificateRevocation System.Boolean
asyncCallback AsyncCallback
return IAsyncResult

BeginAuthenticateAsServer() public static method

Extends BeginAuthenticateAsServer so that when a state object is not needed, null does not need to be passed. sslstream.BeginAuthenticateAsServer(serverCertificate, asyncCallback);
public static BeginAuthenticateAsServer ( this sslstream, System serverCertificate, AsyncCallback asyncCallback ) : IAsyncResult
sslstream this
serverCertificate System
asyncCallback AsyncCallback
return IAsyncResult

BeginAuthenticateAsServer() public static method

Extends BeginAuthenticateAsServer so that when a state object is not needed, null does not need to be passed. sslstream.BeginAuthenticateAsServer(serverCertificate, clientCertificateRequired, enabledSslProtocols, checkCertificateRevocation, asyncCallback);
public static BeginAuthenticateAsServer ( this sslstream, System serverCertificate, System.Boolean clientCertificateRequired, System enabledSslProtocols, System.Boolean checkCertificateRevocation, AsyncCallback asyncCallback ) : IAsyncResult
sslstream this
serverCertificate System
clientCertificateRequired System.Boolean
enabledSslProtocols System
checkCertificateRevocation System.Boolean
asyncCallback AsyncCallback
return IAsyncResult

BeginRead() public static method

Extends BeginRead so that buffer offset of 0 and call to Array.Length are not needed. sslstream.BeginRead(buffer, asyncCallback);
public static BeginRead ( this sslstream, Byte buffer, AsyncCallback asyncCallback ) : IAsyncResult
sslstream this
buffer Byte
asyncCallback AsyncCallback
return IAsyncResult

BeginRead() public static method

Extends BeginRead so that when a state object is not needed, null does not need to be passed. sslstream.BeginRead(buffer, offset, count, asyncCallback);
public static BeginRead ( this sslstream, Byte buffer, Int32 offset, Int32 count, AsyncCallback asyncCallback ) : IAsyncResult
sslstream this
buffer Byte
offset System.Int32
count System.Int32
asyncCallback AsyncCallback
return IAsyncResult

BeginWrite() public static method

Extends BeginWrite so that buffer offset of 0 and call to Array.Length are not needed. sslstream.BeginWrite(buffer, asyncCallback);
public static BeginWrite ( this sslstream, Byte buffer, AsyncCallback asyncCallback ) : IAsyncResult
sslstream this
buffer Byte
asyncCallback AsyncCallback
return IAsyncResult

BeginWrite() public static method

Extends BeginWrite so that when a state object is not needed, null does not need to be passed. sslstream.BeginWrite(buffer, offset, count, asyncCallback);
public static BeginWrite ( this sslstream, Byte buffer, Int32 offset, Int32 count, AsyncCallback asyncCallback ) : IAsyncResult
sslstream this
buffer Byte
offset System.Int32
count System.Int32
asyncCallback AsyncCallback
return IAsyncResult