Skip to content

ITaskQueryContext

Interface in Oadm.Sdk.Plugins · Oadm.Sdk.dll

What the server gives a query (ITaskPluginQuery.QueryAsync).

public interface ITaskQueryContext

Guide: Task plugins

IDeviceRepository? Devices { get; }

Default implementation

Read-only view of all managed devices (e.g. to flag an address another managed device already uses). Null when the host does not offer it.

ILogger Logger { get; }

The server log.

IDeviceNetwork? Network { get; }

Default implementation

Network checks towards the queried device, routed like it (through its site or on the server’s own network), e.g. whether a new address is in use. Null on hosts without it.

IVapixClient Vapix { get; }

Pre-authenticated for the queried device.

Task<IReadOnlySet<string>> ManagedAddressesAsync(IReadOnlyCollection<string> addresses, CancellationToken ct)

Default implementation

Which of addresses a managed device on the queried device’s route uses, also a device outside the user’s view (SDK 0.4.0): an address-in-use check that answers only “in use” and never names that device. Addresses are compared as IP addresses; the answer holds the entries of addresses as given. Default (older hosts, without device groups, where ITaskQueryContext.Devices lists every device): none. At most 256 addresses per call (more throw ArgumentException).