Exemple #1
0
        private static void SubscribeAsyncReactiveCommand <T>(object property, IEventTracker eventTracker, Type type, PropertyInfo propertyInfo)
        {
            var reactiveProperty = (AsyncReactiveCommand <T>)property;

            reactiveProperty.Subscribe(x =>
            {
                eventTracker.TrackCommand(type, propertyInfo, x);
                return(Task.CompletedTask);
            });
        }
Exemple #2
0
        private static void SubscribeReactiveCommand <T>(object property, IEventTracker eventTracker, Type type, PropertyInfo propertyInfo)
        {
            var reactiveProperty = (ReactiveCommand <T>)property;

            reactiveProperty.Subscribe(x => { eventTracker.TrackCommand(type, propertyInfo, x); });
        }