Пример #1
0
        public static Task WatchAsync(this IQueryIndexes queryIndexes, string bucketName, IEnumerable <string> indexNames, Action <WatchQueryIndexOptions> configureOptions)
        {
            var options = new WatchQueryIndexOptions();

            configureOptions(options);

            return(queryIndexes.WatchAsync(bucketName, indexNames, options));
        }
Пример #2
0
        public static Task BuildDeferredAsync(this IQueryIndexes queryIndexes, string bucketName, Action <BuildDeferredQueryIndexOptions> configureOptions)
        {
            var options = new BuildDeferredQueryIndexOptions();

            configureOptions(options);

            return(queryIndexes.BuildDeferredAsync(bucketName, options));
        }
Пример #3
0
        public static Task DropPrimaryAsync(this IQueryIndexes queryIndexes, string bucketName, Action <DropPrimaryQueryIndexOptions> configureOptions)
        {
            var options = new DropPrimaryQueryIndexOptions();

            configureOptions(options);

            return(queryIndexes.DropPrimaryAsync(bucketName, options));
        }
Пример #4
0
        public static Task CreateAsync(this IQueryIndexes queryIndexes, string bucketName, string indexName, IEnumerable <string> fields, Action <CreateQueryIndexOptions> configureOptions)
        {
            var options = new CreateQueryIndexOptions();

            configureOptions(options);

            return(queryIndexes.CreateAsync(bucketName, indexName, fields, options));
        }
Пример #5
0
        public static Task <IEnumerable <QueryIndex> > GetAllAsync(this IQueryIndexes queryIndexes, string bucketName, Action <GetAllQueryIndexOptions> configureOptions)
        {
            var options = new GetAllQueryIndexOptions();

            configureOptions(options);

            return(queryIndexes.GetAllAsync(bucketName, options));
        }
Пример #6
0
 public static Task WatchAsync(this IQueryIndexes queryIndexes, string bucketName, IEnumerable <string> indexNames)
 {
     return(queryIndexes.WatchAsync(bucketName, indexNames, WatchQueryIndexOptions.Default));
 }
Пример #7
0
 public static Task <IEnumerable <QueryIndex> > GetAllAsync(this IQueryIndexes queryIndexes, string bucketName)
 {
     return(queryIndexes.GetAllAsync(bucketName, GetAllQueryIndexOptions.Default));
 }
Пример #8
0
 public static Task BuildDeferredAsync(this IQueryIndexes queryIndexes, string bucketName)
 {
     return(queryIndexes.BuildDeferredAsync(bucketName, BuildDeferredQueryIndexOptions.Default));
 }
Пример #9
0
 public static Task DropPrimaryAsync(this IQueryIndexes queryIndexes, string bucketName)
 {
     return(queryIndexes.DropPrimaryAsync(bucketName, DropPrimaryQueryIndexOptions.Default));
 }
Пример #10
0
 public static Task CreateAsync(this IQueryIndexes queryIndexes, string bucketName, string indexName, IEnumerable <string> fields)
 {
     return(queryIndexes.CreateAsync(bucketName, indexName, fields, CreateQueryIndexOptions.Default));
 }