Skip to content

ITaskPluginDialog

Interface in Oadm.Sdk.Client · Oadm.Sdk.Client.dll

Client part of a task plugin that needs user input before running.

public interface ITaskPluginDialog

Guide: Task plugins

string PluginId { get; }

The id of the task plugin on the server that this dialog belongs to.

Task<string?> ShowAsync(ITaskDialogContext ctx, IReadOnlyList<IDeviceInfo> devices, Window owner)

Returns the payload JSON sent to the server, or null when the user cancelled.

Task<TaskDialogResult?> ShowForDevicesAsync(ITaskDialogContext ctx, IReadOnlyList<IDeviceInfo> devices, Window owner)

Default implementation

Like ITaskPluginDialog.ShowAsync, and names the selected devices the task runs on: a dialog leaves out devices where the task would change nothing or fail anyway (already up to date, no file for them). Null when the user cancelled. Default: ITaskPluginDialog.ShowAsync on every selected device (SDK 0.5.0).