<PackageReference Include="NLog" Version="6.1.0" />

NLog.Targets.MethodCallTargetBase

public abstract class MethodCallTargetBase : Target
The base class for all targets which call methods (local or remote). Manages parameters and type coercion.

Gets the array of parameters to be passed.

Initializes a new instance of the MethodCallTargetBase class.

protected virtual void DoInvoke(object[] parameters, AsyncLogEventInfo logEvent)

Calls the target DoInvoke method, and handles AsyncContinuation callback

protected abstract void DoInvoke(object[] parameters)

Calls the target method. Must be implemented in concrete classes.