/// <summary> /// Initializes a new instance of the <see cref="T:Membase.MembasePool" /> class /// using a custom configuration provider and the specified bucket name. /// </summary> /// <param name="configuration">The custom configuration provider.</param> /// <param name="bucketName">The name of the bucket this client will connect to. Note: this will override the configuration's BucketName property.</param> public MembaseClient(IMembaseClientConfiguration configuration, string bucketName) : base(new MembasePool(configuration, IsDefaultBucket(bucketName) ? null : bucketName), configuration.CreateKeyTransformer(), configuration.CreateTranscoder(), configuration.CreatePerformanceMonitor()) { }
/// <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; }
protected MembaseClient(IMembaseServerPool pool, IMembaseClientConfiguration configuration) : base(pool, configuration.CreateKeyTransformer(), configuration.CreateTranscoder(), configuration.CreatePerformanceMonitor()) { this.poolInstance = (IMembaseServerPool)this.Pool; }
/// <summary> /// Initializes a new instance of the <see cref="T:Enyim.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 memcachedClient will connect to.</param> /// <param name="bucketPassword">The password of the bucket this memcachedClient 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 = (MembasePool)this.Pool; }