PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLogging­Configuration­ManagerConfigure­From­Xml­Async
Open sandboxFocus

LoggingConfigurationManager.ConfigureFromXmlAsync Method

ConfigureFromXmlAsync(LoggingBackend, Uri, CancellationToken)

Configures a LoggingBackend from an XML configuration file whose location is specified in a System.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.

System.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.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken.

Returns
Type Description
System.Threading.Tasks.Task

Nothing.