Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

GoogleWorkspaceChangeTracker

Namespace OfficeIMO.GoogleWorkspace.Sync
Assembly OfficeIMO.GoogleWorkspace.Sync
Source revision a6a3eb05d3cc 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 requiredposition: 0
options OfficeIMO.GoogleWorkspace.Drive.GoogleDriveClientOptions? = null optionalposition: 1

Methods

public Void Dispose() #
Returns: Void

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

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

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

Parameters

sharedDriveIds System.Collections.Generic.IEnumerable<System.String>? = null optionalposition: 0
cancellationToken System.Threading.CancellationToken = default optionalposition: 1
public async Task<GoogleWorkspaceChangeReadResult> ReadAsync(GoogleWorkspaceSyncCheckpoint checkpoint, GoogleWorkspaceChangeReadOptions? options = null, CancellationToken cancellationToken = default) #
Returns: Task<GoogleWorkspaceChangeReadResult>

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

Parameters

checkpoint OfficeIMO.GoogleWorkspace.Sync.GoogleWorkspaceSyncCheckpoint requiredposition: 0
options OfficeIMO.GoogleWorkspace.Sync.GoogleWorkspaceChangeReadOptions? = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2