Socket pool using the Membase server's dynamic node list
Inheritance: IMembaseServerPool
        /// <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 = (MembasePool)this.Pool;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Membase.MembasePool" /> class 
 /// using a custom configuration provider.
 /// </summary>
 /// <param name="configuration">The custom configuration provider.</param>
 public MembaseClient(IMembaseClientConfiguration configuration)
     : this(configuration, null)
 {
     this.nsPool = (MembasePool)this.Pool;
 }