public UserStatusCardViewModel(IUserProfileContainer userProfileContainer, IMetadataContainer metadataContainer) { _userProfileContainer = userProfileContainer; _metadataContainer = metadataContainer; this.WhenActivated((d) => { _userProfileContainer.Changes.DistinctUntilChanged(new UserStateStatusEqualityComparer()).SubscribeOn(RxApp.TaskpoolScheduler).ObserveOn(RxApp.MainThreadScheduler).Subscribe(HandleProfileModelChanged).DisposeWith(d); }); }
public HealthStatusAdviceViewModel(IUserProfileContainer userProfileContainer, IMetadataContainer metadataContainer) { _userProfileContainer = userProfileContainer; _metadataContainer = metadataContainer; MoreInfoCommand = ReactiveUI.ReactiveCommand.CreateFromTask(ShowMoreInfoAsync); this.WhenActivated((d) => { _userProfileContainer.Changes.DistinctUntilChanged(new UserStateStatusEqualityComparer()).SubscribeOn(RxApp.TaskpoolScheduler).ObserveOn(RxApp.MainThreadScheduler).Subscribe(HandleProfileModelChanged).DisposeWith(d); }); }
public AuthenticationInfoService( IUserProfileContainer userProfileContainer, IAccountContainer accountContainer, ISessionContainer sessionContainer, IMetadataContainer metadataContainer, ILoggerFactory loggerFactory) { _userProfileContainer = userProfileContainer; _accountContainer = accountContainer; _sessionContainer = sessionContainer; _metadataContainer = metadataContainer; _logger = loggerFactory.CreateLogger <AuthenticationInfoService>(); }
public MetadataService( IMetadataContainer metadataContainer, IUserProfileContainer userProfileContainer, IPlatformClient platformClient, IErrorResponseHandler serviceErrorHandler, IConnectivityService connectivityService, ILoggerFactory loggerFactory) { _metadataContainer = metadataContainer; _userProfileContainer = userProfileContainer; _platformClient = platformClient; _serviceErrorHandler = serviceErrorHandler; _connectivityService = connectivityService; _logger = loggerFactory.CreateLogger <UserService>(); }
public RecommendationsViewModel( IUserProfileContainer userProfileContainer, IErrorHandler errorHandler, IRecommendationsService recommendationsService) { _userProfileContainer = userProfileContainer; _errorHandler = errorHandler; _recommendationsService = recommendationsService; _models.Connect() .SubscribeOn(RxApp.TaskpoolScheduler) .Transform(x => new RecommendationItemViewModel(x)) .ObserveOn(RxApp.MainThreadScheduler) .Bind(out _recommendations, 1) .Subscribe(); }
public UserStatusChangeService( IPlatformClient platformClient, ILoggerFactory loggerFactory, IConnectivityService connectivityService, IMeetingsService meetingsService, IUserStatusChangeServiceErrorHandler serviceErrorHandler, IUserProfileContainer userProfileContainer, IMetadataContainer metadataContainer) { _platformClient = platformClient; _connectivityService = connectivityService; _meetingsService = meetingsService; _logger = loggerFactory.CreateLogger<UserStatusChangeService>(); _serviceErrorHandler = serviceErrorHandler; _userProfileContainer = userProfileContainer; _metadataContainer = metadataContainer; }