Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Interface

IOfficeStagingGuard

OfficeIMO

Namespace
OfficeIMO
Assembly
OfficeIMO.Core
Source revision
e163ccb36643 with working tree changes
Modifiers
abstract

Optional host policy checked before creating or writing a local destination staging directory.

Remarks

Implement alongside IOfficePublicationGuard when the host limits writable roots. Checks run before and after directory creation; they do not lock filesystem identities against concurrent changes.

Methods

public abstract Task EnsureStagingDirectoryAllowedAsync(string directory, CancellationToken cancellationToken) #

Throws when staging in the absolute directory is unauthorized. Must honor cancellation.

Parameters

directory string required
cancellationToken System.Threading.CancellationToken required

Returns

Task