Skip to content

IDeviceWebSession

Interface in Oadm.Sdk.Client · Oadm.Sdk.Client.dll

One relay for one device; dispose it when its browser tab closes or shows another device.

public interface IDeviceWebSession : IDisposable

Extends IDisposable

Guid DeviceId { get; }

The device this session shows.

Uri Origin { get; }

The relay’s origin, “http://127.0.0.1:51234/”. Requests without the session cookie are refused.

Uri StartAddress(string path)

The first address to open in the browser for path (“/”, “/local/objectanalytics/index.html#/”): it hands the browser the session cookie once, then redirects to the path. Later navigations use IDeviceWebSession.Origin.