示例#1
0
 public void PropagateTc(object sender, EventArgs e)
 {
     if (TParent != null)
     {
         TParent.OnTreeChange(e);
     }
 }
示例#2
0
                public void Run(TParent parent)
                {
                    _watch = _scheduler.StartStopwatch();

                    RunCore(parent);

                    base.Run(parent._source);
                }
示例#3
0
            public BaseNode([NotNull] TParent parent, int id)
            {
                if (parent == null)
                {
                    throw new ArgumentNullException(nameof(parent));
                }

                Parent = parent;
                Id     = id;
            }
示例#4
0
        private TParent AssertDefaultType <TParent, TConcrete>()
        {
            // given

            // when
            TParent instance = _container.GetInstance <TParent>();

            // then
            Assert.That(instance, Is.TypeOf <TConcrete>());

            return(instance);
        }
示例#5
0
                public override void Run(TParent parent)
                {
                    _queue        = new Queue <System.Reactive.TimeInterval <TSource> >();
                    _hasCompleted = false;
                    _completeAt   = default(TimeSpan);
                    _hasFailed    = false;
                    _exception    = default(Exception);

                    _watch = _scheduler.StartStopwatch();

                    RunCore(parent);

                    Disposable.SetSingle(ref _sourceSubscription, parent._source.SubscribeSafe(this));
                }
示例#6
0
文件: Delay.cs 项目: akarnokd/Rx.NET
                public override IDisposable Run(TParent parent)
                {
                    _queue        = new Queue <System.Reactive.TimeInterval <TSource> >();
                    _hasCompleted = false;
                    _completeAt   = default(TimeSpan);
                    _hasFailed    = false;
                    _exception    = default(Exception);

                    _watch = _scheduler.StartStopwatch();

                    RunCore(parent);

                    var sourceSubscription = new SingleAssignmentDisposable();

                    _sourceSubscription           = sourceSubscription;
                    sourceSubscription.Disposable = parent._source.SubscribeSafe(this);

                    return(StableCompositeDisposable.Create(_sourceSubscription, _cancelable));
                }
示例#7
0
文件: Delay.cs 项目: Scopola/reactive
                public void Run(TParent parent)
                {
                    _atEnd = false;

                    Disposable.SetSingle(ref _subscription, RunCore(parent));
                }
示例#8
0
 protected _(TParent parent, IObserver <TSource> observer)
     : base(observer)
 {
     _scheduler = parent._scheduler;
 }
示例#9
0
 public override void Update(TParent parent)
 {
     _child = _getChild(parent);
 }
示例#10
0
 public override void Update(TParent parent)
 {
 }
示例#11
0
 public abstract void Update(TParent parent);
示例#12
0
 public S(TParent parent, IObserver <TSource> observer)
     : base(observer)
 {
     _scheduler = parent._scheduler;
 }
示例#13
0
 public abstract void Run(TParent parent);
示例#14
0
 public S(TParent parent, IObserver <TSource> observer)
     : base(parent, observer)
 {
 }
示例#15
0
 protected abstract void RunCore(TParent parent);
示例#16
0
 public Entry(TParent parent, object child)
 {
     Parent = parent;
     Child  = child;
 }
示例#17
0
文件: Delay.cs 项目: akarnokd/Rx.NET
 public S(TParent parent, IObserver <TSource> observer, IDisposable cancel)
     : base(observer, cancel)
 {
     _scheduler = parent._scheduler;
 }
示例#18
0
文件: Delay.cs 项目: akarnokd/Rx.NET
 public abstract IDisposable Run(TParent parent);
示例#19
0
                public void Run(TParent parent)
                {
                    _atEnd = false;

                    _subscription.Disposable = RunCore(parent);
                }
示例#20
0
 protected S(TParent parent, IObserver <TSource> observer)
     : base(parent, observer)
 {
 }
示例#21
0
文件: Delay.cs 项目: Scopola/reactive
 protected abstract IDisposable RunCore(TParent parent);