[Autofac]
- Added EnsureSiteScope and EnsureWebScope methods to ISharePointContainerProvider.
- That way we can inject an SPSite or an SPWeb from feature event receivers fired from Powershell.exe or even potentially maintain long-running objects shared across a site in OWSTimer.exe.
- The CurrentWeb and CurrentSite lifetime scopes should be used from HTTP-request context. The new EnsureSiteScope and EnsureWebScope are meant as a workaround when SPContext.Current isn't available.
- See third example in SharePointContainerProvider class comment for usage example.