SDK versions and compatibility
A plugin is built against the SDK of one OADM release (the NuGet packages of that version) and runs on the OADM versions that SDK is compatible with. This page says what OADM checks, what it promises today and what you do before you update.
The SDK version
Section titled “The SDK version”The SDK has its own version, SdkInfo.Version in src/Oadm.Sdk/Plugins/Plugins.cs (today 0.17.0), separate from the
OADM version. Your plugin.json names the SDK it needs (the project SDK writes the version you build with):
"minSdkVersion": "0.16.0"When the server starts, it compares the two. A plugin that needs a newer SDK than the server has is not loaded; the server log says why:
Plugin problem in plugins/acme.hello: Plugin acme.hello requires SDK 0.17.0, host has 0.16.0.minSdkVersion also decides who may use the plugin. Users limited to a device group get only plugins with 0.4.0 or
later; see Plugins built before 0.4.0.
The client loads the client part of a plugin without this check, but without its server part such a page or dialog has nothing to talk to.
The shared assemblies (below) always come from OADM, whatever version your plugin was built against, so the plugin
folder loads on every OADM whose SDK minSdkVersion allows. The oadm tool is stricter: on Windows,
deploy --installed and debug --installed refuse an installed OADM older than the release of the packages you build
with; on Linux and macOS they only warn. To support older releases, build with the packages of the oldest one; use
members that are newer only with the check below.
How the SDK grows
Section titled “How the SDK grows”New members of the SDK interfaces come with a body in the SDK (default interface members). That keeps both directions working:
| You | OADM | What happens |
|---|---|---|
Implement an interface (ITaskPlugin, ICorePlugin) built with an older SDK |
Newer | Your plugin loads; the new members use their default |
Call a member of an interface OADM implements (ICorePluginContext, ITaskExecutionContext) |
Older, without that member | The default answers: null, an empty list or NotSupportedException, as the member’s comment says |
In the SDK reference such members carry Default implementation. When your plugin uses one that may be missing on an older OADM, check for it:
if (ctx.EventStreams is not { } streams){ return; // an older OADM: no event streams}What is shared and what your plugin brings
Section titled “What is shared and what your plugin brings”OADM provides these at runtime. Compile against them, never copy them into your plugin folder; the project SDK
Oadm.Plugin.Sdk references them that way, in the versions of its OADM release:
| Part | Shared assemblies |
|---|---|
| Server part | Oadm.Sdk, Microsoft.Extensions.* (logging, options) |
| Client part | Oadm.Sdk, Oadm.Sdk.Client, Avalonia, CommunityToolkit.Mvvm, Microsoft.Extensions.Logging*, SkiaSharp, HarfBuzzSharp |
Everything else your plugin uses (a NuGet package for MQTT, a PDF library) goes into its folder. Each plugin folder loads in a context of its own, so two plugins can use different versions of the same library.
The SDK today
Section titled “The SDK today”- The SDK is version 0.x: it still grows with OADM releases, mostly by new members with defaults. Until 1.0 a release can also change a member; rebuild your plugin against each new release.
- The NuGet packages (
Oadm.Sdk,Oadm.Sdk.Client,Oadm.Sdk.Testing,Oadm.Plugin.Sdk,Oadm.Plugin.Templates,Oadm.Tools) come with every OADM release, all in its version. A checkout of the repository builds the same.
SDK history
Section titled “SDK history”| SDK | OADM | What changed |
|---|---|---|
| 0.17.0 | 5.5 | Client: FlowPacking.Tiles (FlowColumns: tiles of one width, a row as high as its tallest). A folder on the server’s computer for a plugin setting: ICorePluginContext.FolderCheck (IServerFolderCheck, the server’s checks of a chosen folder), ServerFolderTexts. Client: ICorePluginClientContext.ServerFolders (IServerFolders, ServerFolder, ServerFolderListing), the field ServerFolderPicker and its dialog ServerFolderWindow (ServerFolderPickerViewModel); the filters of a list as chips: FilterButton, FilterBar, FilterSet, FilterKind; tags like the device tags for a plugin’s own tags: TagChips (TagChip, on TagChipRow), TagColorPicker, TagColors. The columns a user chooses: ColumnChooserButton, GridColumnLayout (GridColumnDefinition, GridColumnState), GridColumnBinder, GridColumnOption. Charts: ChartLegend (ChartLegendItem), LineChart.Start and ShowLegend, BarChart.MinSlotWidth and RotateLabels, ChartBar.Details, ChartColor.Strong and Palette1 to Palette8, ChartPalette, StatCard.IconKey. An audit entry for what a plugin does by itself: ICorePluginContext.Audit (IPluginAudit). Testing: FakeServerFolderCheck, FakeCoreContext.FolderCheck, FakePluginAudit, FakeCoreContext.Audit. |
| 0.16.0 | 5.4 | The current call of a stored user for work that runs later without them: ICorePluginContext.UserCalls (IUserCalls.ForUserAsync), only for plugins that ship with OADM. Testing: FakeUserCalls, FakeCoreContext.UserCalls. |
| 0.15.0 | 5.3 | The node canvases: NodeChainCanvas (NodeChain with the + of CanAdd and AddRequested, NodeChainAddEventArgs, NodeChainNode), the node list NodePicker (NodePickerModel, NodePickerEntry, NodePickerGroup, NodePickerItem, NodeIcon), FormField.Help (a “?” with a short help inside the field), NodeCanvasPainter (NodeCardBorder), NodeCanvasGeometry (CanvasView), CanvasTheme. The first set up of a factory-new device through the add page’s checks: IDeviceAutoAdd.LookAsync (DeviceLook, DeviceLookResult with Starting: always asked of the device, a starting one asked again for 2 minutes), WatchFactoryNew (FactoryNewDevice: devices stored or turned Password not set; HadPassword: it had a password before, reset to factory default), SetFirstPasswordAsync (DeviceFirstPasswordOutcome), AddWithLoginAsync (one credential list entry and tags), ListCredentialsAsync and AddCredentialAsync (DeviceCredentialName with Added, never a password), DeviceFirstSetupTexts. Client: ICorePluginClientContext.RevealCredentialAsync (a stored password of the credential list for an administrator’s eye, the Credentials page’s call and audit), PasswordRevealButton (the eye next to a stored password), OnOffSwitch (the one on / off switch, “On” / “Off” left of it), CredentialTexts (Masked, ShowFailed, Added). The context of a core plugin for a toolbar entry: IToolbarContext.CorePluginContext. Commands on the selected task of the tasks pane: ITaskAction (TaskActionTask). A task that removes something as a whole sits last in its menu group: ITaskPlugin.IsDestructive; the group TaskGroups.Overlays. Client: DialogTitleBar.Actions (command buttons left of the X). DeviceTexts.Provisioning and ProvisioningTip. The DHCP server read only for other plugins: IDhcpServerLeases (DhcpServerSummary, DhcpAck, DhcpAcks), offered by the DHCP server plugin. PKI’s issuing policies read only for other plugins: IIssuingPolicies (IssuingPolicyInfo, IssuingPolicyUse), offered by PKI. A core plugin’s own files as uploads for the tasks it starts: ICorePluginContext.Uploads (IPluginUploads). An audit entry with the outcome for a run a plugin starts: ITaskRunner.RunAsync with TaskAudit (UserName, EachTask; older hosts run without an entry). Task names up to 120 characters (TaskPluginNames.MaxTaskNameLength, was 48). Client: the date range of a log or list DateRangeButton (DateRangeChoice, DateRangePreset, DateRangeOption, DateRangePanel), DateTimeInput (a date and a 24-hour time), ExportButton (Export with CSV and PDF); HostPermissionKeys.LogsExport. Testing: FakeCoreContext.AutoAdd, FakeCoreContext.FakeUploads, FakeTaskRun.Audit. |
| 0.14.0 | 5.2 | The device access check right before a write: ICallContext.RequireCurrentDeviceAccessAsync (session, permission and device checked again; hosts without it refuse). IVapixClient.UsesConfiguredCertificatePin (the connection uses a configured certificate pin). Client: DialogTitleBar.Subtitle, ProgressRow.Detail, SideSubtitle.Align. |
| 0.13.0 | 5.1 | The certificates of the servers the host runs, picked by a PKI server policy: IServerCertificates, HostServerCertificate, HostServers.Mcp (PKI offers it, only the host reads it). Tasks for AI agents: ITaskPlugin.PayloadType, PayloadJsonOptions, ValidatePayload (also checked by every run), PlanAsync, PagePermissions (a page task agents may start); PayloadError, TaskPlan (with Files, Errors and Details), TaskPlanDevice, SecretAttribute (Label), the secrets a person enters for a run (ITaskPlugin.SecretsOf, TaskSecret, TaskSecrets). Tools of a core plugin for AI agents and other programs: ICorePlugin.Tools, ToolArea, PluginTool, PluginToolPage, PluginToolErrors; a tool on the devices of a filter (PluginTool.DeviceFilter, PluginToolDevices) and one that follows the permissions of a task of its package (PluginTool.TaskPlugin). The page’s own actions as tools, with the page’s checks and rights: PluginPageTools, PluginToolInput, PluginToolInputException, PluginToolPlan; the secrets of a change (PluginTool.Secrets, PluginToolSecret, PluginToolSecrets, PluginToolPlan.SecretsNeeded, PluginToolInput.Secret, IsRun), a file the answer hands out (PluginTool.ReturnsFile, PluginToolFile), the caller’s own uploads (ICallContext.Uploads) and one tool’s own area (PluginTool.Area). |
| 0.12.0 | 5.0 | Persistent recipients, one open connection many rules share: RecipientType.Sessions, IRecipientSessionFactory, IRecipientSession, IActionContext.SessionAsync<T>. Certificates of PKI in a recipient: ActionField.ClientCertificate, ActionField.TrustedCertificate, RecipientSessionRequest.CertificatesOf, IRecipientCertificates, IRecipientCertificateUse. The passwords of such a recipient reach only the session. ActionFieldFormat.OpcEndpoint. A field that shows on either of two conditions: ActionField.AlsoVisibleWhenKey, AlsoVisibleWhenValue. ActionPlaceholders.FirstUnknown, PlaceholderEscape.SingleLine, RecipientSessionTexts. A plugin’s own check at a release: ICorePlugin.SelfCheck. Testing: FakeActionContext.Sessions. Client: a page reads and watches with one call, ctx.RunAsync(read, handle, options, ct) (PluginEventWatch, PluginEventWatchOptions: the waits, Failed, a TimeProvider); a server call that returns the text to show instead of throwing: GuardedRun.RunAsync (GuardedCancel). The one text of a number of bytes: ByteSize.Text (“412 KB”, “87.0 MB”) and ByteSize.Progress (“37.0 of 82.4 MB”) in Oadm.Sdk.Formatting; FileSizeText.Format of the client SDK gives the same text and stays for older plugins. Client: EmbeddedBrowserLinks.Leaves, FlowColumns (FlowPacking), the LeadingIcon classes found and changed. The one JSON helper of page calls, events, payloads and stored settings: PluginJson (CreateOptions with PluginJsonEnums, Serialize, Parse, ParseOrEmpty, TryParse, EmptyRequest, UnreadableRequest); broken JSON from a caller is an ArgumentException with a plain text, which the server answers as a refusal. |
| 0.11.0 | 5.0 | Recipients, shared targets of event rule actions: ActionField.Recipient, ActionFieldType.Recipient, RecipientType, IActionPlugin.RecipientTypes, RecipientType.Target, ActionInvocation.RecipientIds, ActionField.EmptyText, ActionField.Format (ActionFieldFormat, ActionFormats). The host merges the chosen recipient’s fields into the settings before a run. |
| 0.10.0 | 4.10 | The event tree of the rule dialog: EventTypeInfo.Path and Folders (where an event sits, e.g. ["Certificates", "EST server"]; at most 4 folders, none blank). An event of one device, sent per part: EventTypeInfo.FixedDeviceId and SplitField (Dashboards asks for no device and keeps a value per choice). The name of the device firmware: AxisOsTexts (Name, UpgradeTask, DowngradeTask, Version, SearchAlias, Contains; “AXIS OS 12.11.77”, searches that find it by “firmware”). Whether an enabled rule uses an event: IEventPublisher.IsUsedByRule (IsWatched also counts subscriptions). The audit text of a plugin call: ICorePlugin.AuditDetail. The rail group of vision plugins: CorePluginGroup.Vision (an older client shows it under Extensions) and the place of every group in the rail: CorePluginGroups.RailOrder. A live stream through a site without a large transfer slot: VapixRequestOptions.LiveStream (an MJPEG stream the plugin reads for hours; the plugin limits its streams per site). Client: FormField.InfoPicture and InfoIcon.PictureTemplate (a drawing below the info text). Testing: FakeEventPublisher, FakeCoreContext.EventPublisher, FakeDeviceScopes.Rename. |
| 0.9.0 | 4.9 | Files from axis.com with the MyAxis sign-in of the user who started a task: ITaskExecutionContext.AxisDownloads (IAxisDownloads, AxisDownloadedFile, AxisDownloadException; the host downloads, checks size and SHA-256 and caches; the plugin never gets the session). Client: ITaskDialogContext.MyAxis (IMyAxisSignIn). Testing: FakeAxisDownloads, FakeTaskContext.AxisDownloads. Field checks of event rules: RuleCondition.Checks (RuleCheck, RuleCheckOperator), RuleChecks (operators by EventValueKind, the shared rules of a check, Describe, Label, TooMany, NoSuchValueText), RuleCondition.AllChecks (older equals filters as RuleCheck.IsLegacy checks). A plugin event field with Filter true can be checked in a rule; EventField.Kind comes from Type when not declared (Number = number). |
| 0.8.0 | 4.8 | Devices with a live video stream: IDeviceInfo.HasLiveVideo and DeviceCategories.HasLiveVideo (the devices with HasVideo and security radars, their radar picture; for live video only). |
| 0.7.0 | 4.7 | Core plugin pages run a task plugin like the context menu: ICorePluginClientContext.RunTaskAsync, also on a part of its dialog (RunTaskAsync(pluginId, deviceIds, startView, ct), read by the dialog as ITaskDialogContext.StartView) and uploads a file for them: ICorePluginClientContext.UploadAsync. A page opens a page of a device’s web interface in Web View: ICorePluginClientContext.OpenDevicePage, OpenDevicePageRequested, DevicePageRequest. How a task ended: ITaskRunner.GetOutcomeAsync (TaskOutcome, TaskEndState). Testing: FakeCoreContext.EndTask(id, state, message) |
| 0.6.0 | 4.6 | Measuring video streams on the server: ICorePluginContext.StreamProbes (IDeviceStreamProbes, IDeviceStreamProbe, StreamProbeSource, StreamProbeRequest, StreamProbeCounters, StreamProbeTransport, IDeviceStreamProbe.UdpBlocked; RTP over UDP or TCP, nothing decoded). Firewall rules for a port range: FirewallRule.LastPort, PortText and ForServiceRange. Testing: FakeStreamProbes, FakeStreamProbe. Client: LineChart and BarChart. |
| 0.5.0 | 4.5.2 | ITaskPluginDialog.ShowForDevicesAsync and TaskDialogResult: a task dialog names the selected devices its task runs on. Client: FormField.LabelAbove. |
| 0.4.0 | 4.5 | Device groups: the call context. ICallContext (UserName, SessionId, DeviceScopeKey, Has, HasAllDevices, Devices, Vapix, Tasks, EventStreams, Contains) in the overloads ICorePlugin.InvokeAsync(caller, ...), ICorePluginDownloads.OpenDownloadAsync(caller, ...), ITaskPluginQuery.QueryAsync(ctx, caller, ...) and ITaskExecutionContext.Caller; ICorePlugin.RequiresAllDevices and SystemAccessReason; ICorePluginContext.System (ISystemAccess), Jobs (IPluginJobs, IPluginJob), DeviceScopes (IDeviceScopes) and ProtectedTags (IProtectedTags); IPluginEvents.Publish(topic, json, audience) (PluginEventAudience); ITaskQueryContext.ManagedAddressesAsync and ITaskExecutionContext.ManagedAddressesAsync; DevicesNotAvailableException, DeviceAccessRefusedException, DeviceGroupMessages, IDeviceInfo.AddedByAllDevices; IPluginNetwork.ListenUdpAsync with the addresses of one interface; IDeviceCertificateAuthority issued-certificate list, revocation list and PreviousChains. Testing: FakeCoreContext.InvokeAsync / OpenDownloadAsync / QueryAsync with CallAsGroup / CallAsAllDevices, RefusedAccesses, EventsSeenBy, EndTask, PluginCanary, FakeCallContext.Over / OverGroup, FakeTaskContext.OtherDeviceAddresses, FakePluginNetwork.LastUdpAddresses. See Device groups. Client: ICorePluginPage.TabOf, ICorePluginClientContext.Tabs / TabsChanged / OpenTabRequested, CorePluginTab (pages shown as tabs of another plugin’s page); ICorePluginClientContext.IsAdministrator / StartProTrialAsync and ProLicenseInfo.TrialAvailable (the 30-day OADM PRO trial started in OADM). |
| 0.3.0 | 4.1 | OADM PRO and plugin services: ICorePluginContext.Pro (IProLicense, ProLicenseInfo, ProLicenseTexts), "pro": true in plugin.json, ICorePluginContext.Services (IPluginServices: Offer, Withdraw, Find), IDeviceCertificateAuthority (PKI’s CA), ITrustAnchors.SetRenewalIssuers. Task dialogs: ITaskDialogContext.CanRunTasks and RunTaskAsync (TaskRunState, TaskRunStatus). Records: ICorePluginContext.Records (IPluginRecords with GetAsync, MemoryPluginRecords, PluginRecordRules). Network: IPluginNetwork.ListenTcpAsync with the addresses of one interface, InterfaceOptions.All / AllId / AllLabel / IsAll. Testing: FakeProLicense, FakePluginServices, FakeCoreContext.PluginRecords, FakePluginNetwork.LastTcpAddresses |
| 0.2.0 | 4.0 | Devices at a site: DeviceStatus.SiteOffline, IDeviceInfo.SiteId / SiteName, IDeviceNetwork (ITaskExecutionContext.Network, ITaskQueryContext.Network), ICorePluginContext.Network and Sites (relays), siteSupport / sitePorts in plugin.json (the project SDK writes full by default), ITaskPlugin.SiteSupport, IComplianceCheckType.SiteSupport, IRelay.ReleaseAsync, {site} placeholder, DeviceMessages.Refusal(IDeviceInfo) / TaskSupportReasons.ForStatus(IDeviceInfo) (they say “Site offline: TaskSupportReasons.ForSiteSupport, HostPages.Sites, HostPermissionKeys.SitesView. Client: ICorePluginClientContext.OpenDeviceRequested, CheckChoice / ICheckChoice / CheckChoiceList (ComboBox Classes="multiSelect"), PageTab.Count and fixed tabs (no CloseCommand), DeviceTexts.OpenNotAllowed. Testing: FakeDevice.SiteId / SiteName, FakeDeviceNetwork, FakeSites, FakePluginNetwork, InMemoryUdpRelay / InMemoryTcpRelay. The project SDK adds the banned-API analyzer (warning RS0030 for own sockets). See Sites |
| 0.1.0 | 3.x | The first SDK on NuGet |
A plugin needs at least the OADM release of its SDK in the table: built with the 5.4 packages (SDK 0.16.0), it needs
OADM 5.4 or later. A plugin built with SDK 0.1.0 still loads, but its plugin.json has no siteSupport: OADM keeps
it away from devices at a site until you rebuild it with a newer project SDK (or add "siteSupport": "full" to your
own plugin.json).
Plugins built before 0.4.0
Section titled “Plugins built before 0.4.0”A plugin with minSdkVersion below 0.4.0 loads and runs unchanged for users with all devices. For users with a
device group:
- its page methods, downloads, live events and task dialog queries are refused (“Only users with all devices can use this plugin.”), and its pages are left out of their rail;
- its tasks run, like every task, only on devices of the user’s group.
Rebuilding with the 4.5 packages or later writes minSdkVersion 0.4.0 or later, and group users then reach your methods. Move them to the
call first (caller.* instead of ctx.*, see Device groups): in a group user’s call ctx.Devices,
ctx.Vapix, ctx.Tasks and ctx.EventStreams refuse with “Only users with all devices can do this.”. Run a
PluginCanary in your tests to find what is left.
Before you update OADM
Section titled “Before you update OADM”- Read the release notes (
CHANGELOG.md, and the release on GitHub) for SDK changes. - Change the version in the
Sdk="Oadm.Plugin.Sdk/..."of your projects, theOadm.Sdk.Testingreference of your tests and.config/dotnet-tools.jsonto the new release, and build: the compiler shows what changed. - Run your tests, then try the plugin with
dotnet oadm dev start. - The project SDK writes
minSdkVersionintoplugin.json: the SDK version of the packages you build with. To support older OADM releases, build with their packages.