Click or drag to resize

WikiLoggingHelperBeginActionScope(ILogger, Object, String) Method

This is preliminary documentation and is subject to change.

Invokes BeginScopeTState(TState) with the current action(method) name and parameters.

Namespace: WikiClientLibrary.Infrastructures.Logging
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntax
public static IDisposable BeginActionScope(
	this ILogger logger,
	Object? target,
	string? actionName = null
)

Parameters

logger  ILogger
The logger that will enter a new scope.
target  Object
The action target. Usually the target WikiSite, WikiPage, etc. Can be null.
actionName  String  (Optional)
The action name. Leave it missing to use the caller's member name.

Return Value

IDisposable
An IDisposable that when disposed, indicates the action is over.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILogger. 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