PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Configuration­Manager Class / Logging­Configuration­Manager Methods / Logging­Configuration­Manager.​Configure­From­Xml­Async Method

LoggingConfigurationManager.ConfigureFromXmlAsync Method

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

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics.Configuration (in PostSharp.Patterns.Diagnostics.Configuration.dll) Version: (
public static Task ConfigureFromXmlAsync(
	this LoggingBackend backend,
	Uri uri,
	CancellationToken cancellationToken = null


Type: PostSharp.Patterns.Diagnostics.LoggingBackend
The backend to configure.
Type: System.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 (Optional)
Type: System.Threading.CancellationToken
A CancellationToken.

Return Value

Type: Task

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type LoggingBackend. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also