Skip to content

IPluginAudit

Interface in Oadm.Sdk.Plugins · Oadm.Sdk.dll

The server’s audit log for what a core plugin does by itself (SDK 0.17.0, ICorePluginContext.Audit): a timer or a sweep that changes the plugin’s data without a user’s call, e.g. License Plate Center deleting the plates whose time ended. The host writes a “Plugin action” entry like an audited page call (ICorePlugin.IsAudited), the plugin’s name as its target and system as its user (the user of the call when one runs). Calls a user makes are audited by the host already: do not write them again.

public interface IPluginAudit
Task WriteAsync(string detail, CancellationToken ct)

Writes one entry. One entry per run, not per item (“Deleted 3 plates whose time ended”); never a secret or personal data. Never throws for a failed write (the host logs it).

Parameters

  • detail: What the plugin did, in plain words; cut at 500 characters.
  • ct: Cancels the write.