PostSharp / / API Reference / Post­Sharp.​Patterns.​Diagnostics / Logging­Configuration­Manager / Configure­From­Xml­Async
Open sandbox

Method ConfigureFromXmlAsync

ConfigureFromXmlAsync(LoggingBackend, Uri, CancellationToken)

Configures a LoggingBackend from an XML configuration file whose location is specified in a Uri.

Declaration
public static Task ConfigureFromXmlAsync([Required] this LoggingBackend backend, Uri uri, CancellationToken cancellationToken = null)
Parameters
Type Name Description
LoggingBackend backend

The backend to configure.

Uri uri

The location of the configuration file. The schema is described in the LoggingConfigurationModel type. If you're using a cloud storage service, this should be a direct download link.

CancellationToken cancellationToken

A CancellationToken.

Returns
Type Description
Task

Nothing.