API Reference
Class
GoogleWorkspaceChangeTracker
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
- options OfficeIMO.GoogleWorkspace.Drive.GoogleDriveClientOptions? = null
Methods
public Void Dispose() #Returns:
VoidDisposes 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
- cancellationToken System.Threading.CancellationToken = default
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
- options OfficeIMO.GoogleWorkspace.Sync.GoogleWorkspaceChangeReadOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?