public static Task <IPingReport> PingAsync(this IBucket bucket, Action <PingOptions> configureOptions)
        {
            var options = new PingOptions();

            configureOptions(options);

            return(bucket.PingAsync(options));
        }
        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
            }));
        }
Exemplo n.º 3
0
 public static Task <IPingReport> PingAsync(this IBucket bucket, string reportId, params ServiceType[] serviceTypes)
 {
     return(bucket.PingAsync(new PingOptions {
         ReportIdValue = reportId, ServiceTypesValue = serviceTypes
     }));
 }