Bearbeiten

Freigeben über


NWTcpConnectionAuthenticationDelegate.EvaluateTrustAsync Method

Definition

Caution

Use 'NWTcpConnectionAuthenticationDelegate_Extensions.EvaluateTrustAsync' instead.

When implemented by the developer, overrides the default trust evaluation and runs a completion handler when the operation is complete.

[System.Obsolete("Use 'NWTcpConnectionAuthenticationDelegate_Extensions.EvaluateTrustAsync' instead.")]
public virtual System.Threading.Tasks.Task<Security.SecTrust> EvaluateTrustAsync (NetworkExtension.NWTcpConnection connection, Foundation.NSArray peerCertificateChain);
abstract member EvaluateTrustAsync : NetworkExtension.NWTcpConnection * Foundation.NSArray -> System.Threading.Tasks.Task<Security.SecTrust>
override this.EvaluateTrustAsync : NetworkExtension.NWTcpConnection * Foundation.NSArray -> System.Threading.Tasks.Task<Security.SecTrust>

Parameters

connection
NWTcpConnection
peerCertificateChain
NSArray

Returns

A task that represents the asynchronous EvaluateTrust operation. The value of the TResult parameter is of type System.Action<Security.SecTrust>.

Attributes

Remarks

The EvaluateTrustAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to