Пример #1
0
        public IDisposable Subscribe(IObserver <TApi> observer)
        {
            if (!ValidateReference())
            {
                value.Value = default;
                return(Disposable.Empty);
            }

            var disposableValue = value.
                                  Subscribe(observer);

            routineHandler = LoadReference(lifeTimeDefinition).
                             Execute().
                             AddTo(lifeTimeDefinition);

            return(disposableValue);
        }
 public IDisposable Subscribe(IObserver <TData> observer) => _valueData.Subscribe(observer);