Skip to content

ICorePluginDownloads

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

Optional for a core plugin: files its page downloads (gRPC PluginService.Download). The host checks the method’s permission like an Invoke (ICorePlugin.RequiredPermission), audits it when ICorePlugin.IsAudited says so (with PluginDownload.AuditDetail) and answers like an Invoke for the plugin’s exceptions (ArgumentException = invalid argument, InvalidOperationException = failed precondition with the message).

public interface ICorePluginDownloads

Guide: Core plugins and pages

Task<PluginDownload> OpenDownloadAsync(string method, string? payloadJson, CancellationToken ct)

Opens the file method names for payloadJson.

Task<PluginDownload> OpenDownloadAsync(ICallContext caller, string method, string? payloadJson, CancellationToken ct)

Default implementation

ICorePluginDownloads.OpenDownloadAsync with the user’s call (SDK 0.4.0): the file of a job looks the job up for this user (IPluginJobs.Find), devices go through caller. The host calls this one; the default forwards to the old one.