Esempio n. 1
0
 /// <summary>
 ///     Gets identifiers for all streams whose head and last snapshot revisions differ by at least the threshold specified for the default bucket.
 /// </summary>
 /// <param name="accessSnapshots">The <see cref="IAccessSnapshots"/> instance.</param>
 /// <param name="maxThreshold">The maximum difference between the head and most recent snapshot revisions.</param>
 /// <returns>The streams for which the head and snapshot revisions differ by at least the threshold specified.</returns>
 /// <exception cref="StorageException" />
 /// <exception cref="StorageUnavailableException" />
 public static IEnumerable <IStreamHead> GetStreamsToSnapshot(this IAccessSnapshots accessSnapshots, int maxThreshold)
 {
     if (accessSnapshots == null)
     {
         throw new ArgumentException("accessSnapshots is null");
     }
     return(accessSnapshots.GetStreamsToSnapshot(Bucket.Default, maxThreshold));
 }