public IDisposable BeginScope <TState>(TState state) { try { return(_scopeProvider.BeginScope(state)); } catch (Exception ex) { _scopeProvider.ErrorBuildingScope(ex); return(null); } }