/// <summary>
 /// Initializes a new instance of the <see cref="T:Membase.MembaseClient" /> class
 /// using a custom configuration provider and the specified bucket name and password.
 /// </summary>
 /// <param name="configuration">The custom configuration provider.</param>
 /// <param name="bucketName">The name of the bucket this client will connect to.</param>
 /// <param name="bucketPassword">The password of the bucket this client will connect to.</param>
 public MembaseClient(IMembaseClientConfiguration configuration, string bucketName, string bucketPassword) :
     base(new MembasePool(configuration, bucketName, bucketPassword),
          configuration.CreateKeyTransformer(),
          configuration.CreateTranscoder(),
          configuration.CreatePerformanceMonitor())
 {
     this.poolInstance = (IMembaseServerPool)this.Pool;
 }
示例#2
0
 protected MembaseClient(IMembaseServerPool pool, IMembaseClientConfiguration configuration)
     : base(pool,
            configuration.CreateKeyTransformer(),
            configuration.CreateTranscoder(),
            configuration.CreatePerformanceMonitor())
 {
     this.poolInstance = (IMembaseServerPool)this.Pool;
 }