ITaskDialogContext
Interface in Oadm.Sdk.Client · Oadm.Sdk.Client.dll
Server access for a task plugin dialog. Build dialogs from the shared OADM controls and theme.
public interface ITaskDialogContextGuide: Task plugins
Properties
Section titled “Properties”AllDevices
Section titled “AllDevices”IReadOnlyList<IDeviceInfo> AllDevices { get; }Default implementation
Every device of the system, e.g. to take settings from a device that is not selected (“Use configuration from: Device”). Default (older hosts): empty, the dialog then offers its selected devices only.
Methods
Section titled “Methods”bool Has(string permission)Default implementation
Whether the user’s role allows permission, e.g. “task:oadm.users:remove”: the dialog hides or disables the choices the role lacks (the server refuses the run anyway). Default (older hosts): true.
QueryAsync
Section titled “QueryAsync”Task<string?> QueryAsync(Guid deviceId, string method, string? payloadJson, CancellationToken ct)Calls the plugin’s server-side ITaskPluginQuery.QueryAsync for one device (read-only).
UploadAsync
Section titled “UploadAsync”Task<UploadedFile> UploadAsync(string localPath, IProgress<double>? progress, CancellationToken ct)Uploads a local file to the server (256 KB chunks); put the returned id into the task payload. progress receives the fraction sent, from 0.0 to 1.0 (not a percentage).