1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-22 11:35:21 +01:00

register event service with container

This commit is contained in:
Kyle Spearrin 2019-07-12 15:51:47 -04:00
parent 40d68b1654
commit df2af5459e

View File

@ -54,6 +54,7 @@ namespace Bit.Core.Utilities
// TODO: export service
var auditService = new AuditService(cryptoFunctionService, apiService);
var environmentService = new EnvironmentService(apiService, storageService);
var eventService = new EventService(storageService, apiService, userService, cipherService);
Register<IStateService>("stateService", stateService);
Register<ICryptoFunctionService>("cryptoFunctionService", cryptoFunctionService);
@ -74,6 +75,7 @@ namespace Bit.Core.Utilities
Register<IAuthService>("authService", authService);
Register<IAuditService>("auditService", auditService);
Register<IEnvironmentService>("environmentService", environmentService);
Register<IEventService>("eventService", eventService);
}
public static void Register<T>(string serviceName, T obj)