コード例 #1
0
        public static Task <IPingReport> PingAsync(this IBucket bucket, Action <PingOptions> configureOptions)
        {
            var options = new PingOptions();

            configureOptions(options);

            return(bucket.PingAsync(options));
        }
コード例 #2
0
        public static Task <IPingReport> PingAsync(this IBucket bucket, string reportId, params ServiceType[] serviceTypes)
        {
            var serviceTypesValue =
                serviceTypes == null || serviceTypes.Length == 0 ? PingOptions.DefaultServiceTypeValues : serviceTypes;

            return(bucket.PingAsync(new PingOptions {
                ReportIdValue = reportId, ServiceTypesValue = serviceTypesValue
            }));
        }
コード例 #3
0
 public static Task <IPingReport> PingAsync(this IBucket bucket, string reportId, params ServiceType[] serviceTypes)
 {
     return(bucket.PingAsync(new PingOptions {
         ReportIdValue = reportId, ServiceTypesValue = serviceTypes
     }));
 }