/// <summary> /// Construct an instance with default configuration and specific serializer. /// </summary> /// <param name="serializer"></param> /// <param name="start"></param> public RemoteCacheManager(ISerializer serializer, bool start = true) { this.serializer = serializer; if (Infinispan.HotRod.SWIG.Util.Use64()) { manager = new Infinispan.HotRod.SWIG64.RemoteCacheManager(start); } else { manager = new Infinispan.HotRod.SWIG32.RemoteCacheManager(start); } }
/// <summary> /// Construct an instance with default configuration and marshaller. /// </summary> /// <param name="start"></param> public RemoteCacheManager(bool start = true) { this.marshaller = new DefaultMarshaller(); if (Infinispan.HotRod.SWIG.Util.Use64()) { manager = new Infinispan.HotRod.SWIGGen.RemoteCacheManager(start); } else { manager = new Infinispan.HotRod.SWIGGen.RemoteCacheManager(start); } }
/// <summary> /// Construct an instance with default configuration and specific serializer. /// </summary> /// <param name="marshaller"></param> /// <param name="argMarshaller"></param> /// <param name="start"></param> public RemoteCacheManager(IMarshaller marshaller, bool start = true, IMarshaller argMarshaller = null) { this.marshaller = marshaller; this.argMarshaller = argMarshaller; if (Infinispan.HotRod.SWIG.Util.Use64()) { manager = new Infinispan.HotRod.SWIGGen.RemoteCacheManager(start); } else { manager = new Infinispan.HotRod.SWIGGen.RemoteCacheManager(start); } }
/// <summary> /// Construct an instance with specific configuration. /// </summary> /// <param name="configuration"></param> /// <param name="start"></param> public RemoteCacheManager(Configuration configuration, bool start = true) { this.marshaller = configuration.Marshaller(); this.configuration = configuration; if (Infinispan.HotRod.SWIG.Util.Use64()) { manager = new Infinispan.HotRod.SWIGGen.RemoteCacheManager((Infinispan.HotRod.SWIGGen.Configuration)configuration.Config(), start); } else { manager = new Infinispan.HotRod.SWIGGen.RemoteCacheManager((Infinispan.HotRod.SWIGGen.Configuration)configuration.Config(), start); } }
/// <summary> /// Construct an instance with specific configuration and serializer. /// </summary> /// <param name="configuration"></param> /// <param name="serializer"></param> /// <param name="start"></param> public RemoteCacheManager(Configuration configuration, ISerializer serializer, bool start = true) { this.serializer = serializer; if (Infinispan.HotRod.SWIG.Util.Use64()) { manager = new Infinispan.HotRod.SWIG64.RemoteCacheManager((Infinispan.HotRod.SWIG64.Configuration)configuration.Config(), start); } else { manager = new Infinispan.HotRod.SWIG32.RemoteCacheManager((Infinispan.HotRod.SWIG32.Configuration)configuration.Config(), start); } }