Skip to content

ToolbarTaskPlugin

Record in Oadm.Sdk.Client · Oadm.Sdk.Client.dll

A task plugin as the toolbar sees it (server TaskService.ListTaskPlugins).

public sealed record ToolbarTaskPlugin(string Id, string DisplayName, string? IconKey, bool ShowInToolbar, bool RequiresDialog)

Parameters

  • Id: Plugin id, e.g. “oadm.restart”.
  • DisplayName: Menu text.
  • IconKey: Theme icon key (“restart”), resolve with Controls.ToolbarButton.IconKey.
  • ShowInToolbar: The plugin asks for a toolbar button.
  • RequiresDialog: Running it opens the plugin’s dialog first.
string DisplayName { get; init; }

Menu text.

string? IconKey { get; init; }

Theme icon key (“restart”), resolve with Controls.ToolbarButton.IconKey.

string Id { get; init; }

Plugin id, e.g. “oadm.restart”.

bool RequiresDialog { get; init; }

Running it opens the plugin’s dialog first.

bool ShowInToolbar { get; init; }

The plugin asks for a toolbar button.