public OnboardingViewModel(IXDSSecService xdsCryptoService, AppRepository appRepository, DeviceVaultService deviceVaultService) { this.xdsCryptoService = xdsCryptoService; this.appRepository = appRepository; this.deviceVaultService = deviceVaultService; this.Name = ProfileViewModel.DefaultUsername; }
public SetPassphraseView(Toplevel topLevel) : base(topLevel) { this.mainWindow = (Window)topLevel; this.messageBoxService = App.ServiceProvider.Get <IMessageBoxService>(); this.onboardingViewModel = App.ServiceProvider.Get <OnboardingViewModel>(); this.deviceVaultService = App.ServiceProvider.Get <DeviceVaultService>(); this.cancellation = App.ServiceProvider.Get <ICancellation>(); }
public LockScreenView(Window mainWindow) : base(mainWindow) { this.mainWindow = mainWindow; this.deviceVaultService = App.ServiceProvider.Get <DeviceVaultService>(); this.profileViewModel = App.ServiceProvider.Get <ProfileViewModel>(); this.chatWorker = App.ServiceProvider.Get <ChatWorker>(); this.cancellation = App.ServiceProvider.Get <ICancellation>(); this.peerManager = App.ServiceProvider.Get <PeerManager>(); // we need to trigger the c'tor in PeerManager so that it registers as worker }
public Cancellation(ILoggerFactory loggerFactory, DeviceVaultService deviceVaultService, FStoreConfig fStoreConfig) { this.logger = loggerFactory.CreateLogger <Cancellation>(); this.deviceVaultService = deviceVaultService; this.fStoreConfig = fStoreConfig; this.cts = new CancellationTokenSource(); this.cts.Token.Register(Shutdown); this.workers = new List <IWorker>(); this.workers.Add(new InfoWorker(this.workers, loggerFactory, this.cts.Token)); }