1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-15 07:43:37 +00:00

Beginning of policy support (#736)

* Model & service support for policies

* Formatting

* Changes to match existing service and model patterns
This commit is contained in:
Matt Portune
2020-02-21 10:23:38 -05:00
committed by GitHub
parent ec3660a86d
commit 387dc2f59c
9 changed files with 172 additions and 1 deletions

View File

@@ -47,8 +47,10 @@ namespace Bit.Core.Utilities
searchService = new SearchService(cipherService);
var lockService = new LockService(cryptoService, userService, platformUtilsService, storageService,
folderService, cipherService, collectionService, searchService, messagingService, null);
var policyService = new PolicyService(storageService, userService);
var syncService = new SyncService(userService, apiService, settingsService, folderService,
cipherService, cryptoService, collectionService, storageService, messagingService, (bool expired) =>
cipherService, cryptoService, collectionService, storageService, messagingService, policyService,
(bool expired) =>
{
messagingService.Send("logout", expired);
return Task.FromResult(0);
@@ -75,6 +77,7 @@ namespace Bit.Core.Utilities
Register<IFolderService>("folderService", folderService);
Register<ICollectionService>("collectionService", collectionService);
Register<ISearchService>("searchService", searchService);
Register<IPolicyService>("policyService", policyService);
Register<ISyncService>("syncService", syncService);
Register<ILockService>("lockService", lockService);
Register<IPasswordGenerationService>("passwordGenerationService", passwordGenerationService);