public Task Subscribe(IDeviceObserver observer) { Console.WriteLine("[OnServer] Observer Subscribed "); subscribers.Subscribe(observer); return(Task.CompletedTask); }
public void Record() { var buffer = _dataSource.Open(_recording, ApiRoutes.Recording.ConvertToRouteString(_recording.OpenedAt)); _deviceObserver = new InMemorySessionDeviceRecorder(_recording, buffer, _configuration); _observers.Connect(_deviceObserver); }
public async Task SubscribeForNewDevice(IDeviceObserver deviceObserver) { State.DeviceObserverManager.Subscribe(deviceObserver); await WriteStateAsync(); }
public Task UnObserve(IDeviceObserver observer) { _observers.Remove(observer); return(Task.CompletedTask); }
public Task Observe(IDeviceObserver observer) { _observers.Add(observer); return(Task.CompletedTask); }
public Task Subscribe(IDeviceObserver observer) { subscribers.Subscribe(observer); return(Task.CompletedTask); }