namespace SharepointToolbox.Web.Services; /// /// Wraps a SharePoint operation so that, when the "Auto-elevate ownership when permission /// scan is denied" setting is enabled, an access-denied failure triggers taking /// site-collection admin ownership of the failing site and re-running the operation once. /// When the setting is off (or elevation is impossible/unsuccessful) the original /// access-denied error propagates unchanged. /// public interface IElevationCoordinator { Task RunAsync(Func> operation, CancellationToken ct); Task RunAsync(Func operation, CancellationToken ct); }