コード例 #1
0
        public void Flush_Success()
        {
            var result = _bucketManager.Flush();

            Assert.NotNull(result);
            Assert.True(result.Success);
        }
コード例 #2
0
        public void Flush_Success()
        {
            var result = _bucketManager.Flush();

            Assert.NotNull(result);
            Assert.True(result.Success, "{0}-{1}", result.Message,
                        result.Exception == null ? "" : result.Exception.ToString());
        }
コード例 #3
0
        public static Task FlushAsync(this IBucketManager bucketManager, string bucketName, Action <FlushBucketOptions> configureOptions)
        {
            var options = new FlushBucketOptions();

            configureOptions(options);

            return(bucketManager.Flush(bucketName, options));
        }
コード例 #4
0
 public static Task FlushAsync(this IBucketManager bucketManager, string bucketName)
 {
     return(bucketManager.Flush(bucketName, FlushBucketOptions.Default));
 }