Share via


NWTcpConnectionAuthenticationDelegate_Extensions.EvaluateTrustAsync Method

Definition

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

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static System.Threading.Tasks.Task<Security.SecTrust> EvaluateTrustAsync(this NetworkExtension.INWTcpConnectionAuthenticationDelegate This, NetworkExtension.NWTcpConnection connection, Foundation.NSArray peerCertificateChain);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member EvaluateTrustAsync : NetworkExtension.INWTcpConnectionAuthenticationDelegate * 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