EWSClient.GetEwsClientAsync
EWSClient.GetEwsClientAsync method
Initializes a new instance of the EWSClient based class
public static Task<IAsyncEwsClient> GetEwsClientAsync(string mailboxUri, ICredentials credentials,
WebProxy proxy = null, CancellationToken cancellationToken = default,
Dictionary<string, string> headers = null)
| Parameter | Type | Description |
|---|---|---|
| mailboxUri | String | The URI of mailbox |
| credentials | ICredentials | Contains the credentials for authentication. |
| proxy | WebProxy | Contains HTTP proxy settings |
| cancellationToken | CancellationToken | The cancellation token |
| headers | Dictionary`2 | Additional headers for client. |
Return Value
Instance of the class based on the EWSClient class.
See Also
- interface IAsyncEwsClient
- class EWSClient
- namespace Aspose.Email.Clients.Exchange.WebService
- assembly Aspose.Email