public void EndLifetimeScope() { try { var scope = _state.GetState(); if (scope != null) { scope.Dispose(); _state.RemoveState(); } } catch { } }
public void EndLifetimeScope() { try { var scope = _state.GetState(); if (scope != null) { try { scope.Resolve <ILogger>().Flush(); } catch { } scope.Dispose(); _state.RemoveState(); } } catch { } }
public void EndLifetimeScope() { try { var scope = _state.GetState(); if (scope != null) { try { //if (DataSettings.DatabaseIsInstalled()) // scope.Resolve<ILogger>().Flush(); } catch { } scope.Dispose(); _state.RemoveState(); } } catch { } }