public async Task ActivateAsync() { try { _eventHandledNotificationFlow.Activate(); await _stateRestorer.RestoreAsync(); _stateSavingFlow.Activate(); _eventHandlerFLow.Activate(); } catch (Exception e) { _logger.LogError(e, _l[L001FailedToActivate], _claptrapIdentity); throw new ActivateFailException(e, _claptrapIdentity); } }
public async Task ActivateAsync() { try { _logger.LogTrace("Start to activate async"); _eventHandledNotificationFlow.Activate(); await _stateRestorer.RestoreAsync(); _stateSavingFlow.Activate(); _eventHandlerFLow.Activate(); _logger.LogTrace("Activated"); } catch (Exception e) { _logger.LogError(e, _l[LK.failed_to_activate_claptrap__identity_], _claptrapIdentity); throw new ActivateFailException(e, _claptrapIdentity); } }