ITaskPluginDialog
Interface in Oadm.Sdk.Client · Oadm.Sdk.Client.dll
Client part of a task plugin that needs user input before running.
public interface ITaskPluginDialogGuide: Task plugins
Properties
Section titled “Properties”PluginId
Section titled “PluginId”string PluginId { get; }The id of the task plugin on the server that this dialog belongs to.
Methods
Section titled “Methods”ShowAsync
Section titled “ShowAsync”Task<string?> ShowAsync(ITaskDialogContext ctx, IReadOnlyList<IDeviceInfo> devices, Window owner)Returns the payload JSON sent to the server, or null when the user cancelled.
ShowForDevicesAsync
Section titled “ShowForDevicesAsync”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).