public void Initialize(byte[] secretKey, CancellationToken ct) { if (secretKey == null) { throw new ArgumentNullException(nameof(secretKey)); } _cryptoService.Initialize(secretKey); _accountState.Initialize(); _nodeContext.Initialize(); InitializeCommunicationLayer(); ObtainConfiguredModules(); InitializeModules(ct); }
public void Initialize(byte[] secretKey, CancellationToken ct) { if (secretKey == null) { throw new ArgumentNullException(nameof(secretKey)); } ISigningService signingService = _signingServicesRepository.GetInstance("AccountSigningService"); signingService.Initialize(secretKey); _nodeContext.Initialize(signingService); InitializeCommunicationLayer(); ObtainConfiguredModules(); InitializeModules(ct); }