register event service with container

This commit is contained in:
Kyle Spearrin 2019-07-12 15:51:47 -04:00
parent 40d68b1654
commit df2af5459e
1 changed files with 2 additions and 0 deletions

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)