Ejemplo n.º 1
0
        protected override void PostConstruct()
        {
            base.PostConstruct();

            OnTrigger
            .TakeUntil(Disposed.Where(identity))
            .Where(_ => Animation.IsSome)
            .Subscribe(_ => Context.AnimationTree.Set(Parameter, true), this);

            if (Logger.IsEnabled(LogLevel.Trace))
            {
                OnTrigger
                .TakeUntil(Disposed.Where(identity))
                .Subscribe(_ => this.LogTrace("Animation was triggered."), this);
            }
        }