Ejemplo n.º 1
0
        /// <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())
        {
        }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
 protected MembaseClient(IMembaseServerPool pool, IMembaseClientConfiguration configuration)
     : base(pool,
            configuration.CreateKeyTransformer(),
            configuration.CreateTranscoder(),
            configuration.CreatePerformanceMonitor())
 {
     this.poolInstance = (IMembaseServerPool)this.Pool;
 }
Ejemplo n.º 4
0
		/// <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;
		}