Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

GoogleWorkspaceChangeTracker

OfficeIMO.GoogleWorkspace.Sync

Namespace
OfficeIMO.GoogleWorkspace.Sync
Assembly
OfficeIMO.GoogleWorkspace.Sync
Source revision
be6c300e4ab1 with working tree changes
Implements
IDisposable
Modifiers
sealed

Consumes complete Drive change pages and advances each source token only after that source succeeds.

Inheritance

  • object
  • GoogleWorkspaceChangeTracker

Constructors

public GoogleWorkspaceChangeTracker(GoogleWorkspaceSession session, GoogleDriveClientOptions? options = null) #

Creates a tracker using the supplied session and optional Drive client settings.

Parameters

session OfficeIMO.GoogleWorkspace.GoogleWorkspaceSession required
options OfficeIMO.GoogleWorkspace.Drive.GoogleDriveClientOptions? = null optional

Methods

public void Dispose() #

Disposes the underlying Drive client without taking ownership of the session.

public async Task<GoogleWorkspaceSyncCheckpoint> InitializeAsync(IEnumerable<string>? sharedDriveIds = null, CancellationToken cancellationToken = default) #

Obtains current start tokens for the user feed and distinct supplied shared drives.

Parameters

sharedDriveIds System.Collections.Generic.IEnumerable<string>? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public async Task<GoogleWorkspaceChangeReadResult> ReadAsync(GoogleWorkspaceSyncCheckpoint checkpoint, GoogleWorkspaceChangeReadOptions? options = null, CancellationToken cancellationToken = default) #

Reads each feed to its new start token without advancing a failed source in the returned checkpoint.

Parameters

checkpoint OfficeIMO.GoogleWorkspace.Sync.GoogleWorkspaceSyncCheckpoint required
options OfficeIMO.GoogleWorkspace.Sync.GoogleWorkspaceChangeReadOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional