IDeviceAutoAdd
Interface in Oadm.Sdk.Devices · Oadm.Sdk.dll
Adds devices a core plugin saw on the network (the DHCP server’s leases) through the same pipeline as the add page: anonymous Axis check, factory default check, automatic login with the credential list (never passwords of managed devices), then the device is stored like an add from the page and its first full refresh queued. Also follows managed devices to a new address. Implemented by the server; passwords never reach the plugin.
public interface IDeviceAutoAddMethods
Section titled “Methods”AddAsync
Section titled “AddAsync”Task<DeviceAutoAddOutcome> AddAsync(string address, string expectedSerial, string source, CancellationToken ct)Adds the device at address (an IP address) when it is an Axis device with serial number expectedSerial (= MAC address) that OADM does not manage yet. Never throws for device errors.
Parameters
address: The IP address the device was seen at.expectedSerial: The serial number (MAC address) the device must report.source: Who found it, for the log and the audit entry (“DHCP server”).ct: Cancels the checks and the login.
FollowAsync
Section titled “FollowAsync”Task<DeviceFollowResult> FollowAsync(string serial, string address, string source, CancellationToken ct)The managed device with serial number serial was seen at address: when the record has another IP address, verify the device there and move the record (devices reached by host name keep it).