Set Transcoder
Wed, 02/06/2013 - 15:54
Hi,
Moving from MembaseClient to CouchbaseClient and this code is giving me trouble, trying to set the transcoder for the client we have several transcoders and our unit tests iterate over our objects to see which performs best. Code;
public void SetTranscoder(Enyim.Caching.Memcached.ITranscoder transcoder)
{
this.Close(true);
this._clientConfiguration.Transcoder = transcoder;
this._client = new CouchbaseClient(this._clientConfiguration);
this.IsOpen = true;
}I keep getting this error;
Cannot implicitly convert type 'Enyim.Caching.Memcached.ITranscoder' to 'Enyim.Caching.Configuration.ProviderElement<Enyim.Caching.Memcached.ITranscoder>'
Suggestions?
Is the _clientConfiguration variable an instance of a CouchbaseClientSection or a CouchbaseClientConfiguration? CouchbaseClientSection's Transcoder property is an IProviderFactory, not an ITranscoder.