Table of Contents

Method SetMdlc

Namespace
WhalesSecret.TradeScriptLib.Logging
Assembly
WhalesSecret.TradeScriptLib.dll

SetMdlc(string?)

Sets a unique NLog Mapped Diagnostics Logical Context to the current execution context. This method is to be called at the start of each async context that we want to track separately.

public IDisposable SetMdlc(string? name = null)

Parameters

name string

Optionally, a name that will be associated with the MDLC context.

Returns

IDisposable

Disposable object that should be used to release the MDLC context properties.