API Reference
Class
InMemoryGitHubRepositorySnapshotStore
Thread-safe in-memory store for repository snapshots.
Inheritance
- Object
- InMemoryGitHubRepositorySnapshotStore
Constructors
public InMemoryGitHubRepositorySnapshotStore() #Methods
public IReadOnlyList<GitHubRepositorySnapshotRecord> GetAll() #Returns:
IReadOnlyList<GitHubRepositorySnapshotRecord>Returns all known snapshots ordered by repository and capture time.
Returns
All repository snapshots.
public IReadOnlyList<GitHubRepositorySnapshotRecord> GetByWatch(String watchId) #Returns:
IReadOnlyList<GitHubRepositorySnapshotRecord>Returns all snapshots for a single watch ordered by capture time.
Parameters
- watchId System.String
- Stable watch identifier.
Returns
Ordered snapshots for the watch.
public Boolean TryGet(String id, out GitHubRepositorySnapshotRecord snapshot) #Returns:
BooleanLooks up a snapshot by its stable identifier.
Parameters
- id System.String
- Stable snapshot identifier.
- snapshot IntelligenceX.Telemetry.GitHub.GitHubRepositorySnapshotRecord
- Resolved snapshot when one exists.
Returns
true when the snapshot exists.
public Boolean TryGetLatest(String watchId, out GitHubRepositorySnapshotRecord snapshot) #Returns:
BooleanReturns the newest snapshot for a watch when one exists.
Parameters
- watchId System.String
- Stable watch identifier.
- snapshot IntelligenceX.Telemetry.GitHub.GitHubRepositorySnapshotRecord
- Newest snapshot when one exists.
Returns
true when at least one snapshot exists.
public Void Upsert(GitHubRepositorySnapshotRecord snapshot) #Returns:
VoidInserts or replaces a repository snapshot.
Parameters
- snapshot IntelligenceX.Telemetry.GitHub.GitHubRepositorySnapshotRecord
- Snapshot to persist.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?