public Task Subscribe(IDeviceObserver observer)
        {
            Console.WriteLine("[OnServer] Observer Subscribed ");

            subscribers.Subscribe(observer);
            return(Task.CompletedTask);
        }
예제 #2
0
        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();
 }
예제 #4
0
        public Task UnObserve(IDeviceObserver observer)
        {
            _observers.Remove(observer);

            return(Task.CompletedTask);
        }
예제 #5
0
        public Task Observe(IDeviceObserver observer)
        {
            _observers.Add(observer);

            return(Task.CompletedTask);
        }
 public Task Subscribe(IDeviceObserver observer)
 {
     subscribers.Subscribe(observer);
     return(Task.CompletedTask);
 }