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); }); }
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); }); }