Beispiel #1
0
 public HomeViewModel(IUserDialogs userDialogs,
                      INavigationService navigationService,
                      IConnectionService connectionService,
                      ICredentialService credentialService,
                      ICredentialAssembler credentialAssembler,
                      IProofAssembler proofAssembler,
                      IRequestPresentationFiller requestPresentationFiller,
                      IConnectionAssembler connectionAssembler,
                      IProofService proofService,
                      IWalletRecordService recordService,
                      IAgentProvider agentContextProvider,
                      IEventAggregator eventAggregator,
                      ILifetimeScope scope) : base(AppResources.HomeTabTitle, userDialogs, navigationService)
 {
     _connectionService         = connectionService;
     _credentialService         = credentialService;
     _credentialAssembler       = credentialAssembler;
     _connectionAssembler       = connectionAssembler;
     _proofAssembler            = proofAssembler;
     _proofService              = proofService;
     _requestPresentationFiller = requestPresentationFiller;
     _recordService             = recordService;
     _agentContextProvider      = agentContextProvider;
     _eventAggregator           = eventAggregator;
     _scope             = scope;
     _userDialogs       = userDialogs;
     _navigationService = navigationService;
 }
        public CredentialsViewModel(IUserDialogs userDialogs, INavigationService navigationService, ICredentialService credentialService, ICredentialAssembler credentialAssembler, IConnectionService connectionService, IAgentProvider agentContextProvider, IEventAggregator eventAggregator, ILifetimeScope scope) : base(
                AppResources.CredentialsPageTitle,
                userDialogs,
                navigationService)
        {
            _credentialService    = credentialService;
            _credentialAssembler  = credentialAssembler;
            _connectionService    = connectionService;
            _agentContextProvider = agentContextProvider;
            _eventAggregator      = eventAggregator;
            _scope = scope;

            this.WhenAnyValue(x => x.SearchTerm)
            .Throttle(TimeSpan.FromMilliseconds(200))
            .InvokeCommand(RefreshCommand);
        }