public void SetUp() { global::Cassandra.Cluster cluster = Cluster.Builder().AddContactPoint("127.0.0.1").Build(); Session session = cluster.Connect(); KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new KeyValueStorage.Cassandra.CassandraStoreProvider(session))); }
public void SetUp() { var config = new global::Couchbase.Configuration.CouchbaseClientConfiguration() { Bucket = "default", Password = "******" }; config.Urls.Add(new Uri("http://127.0.0.1:8091/pools")); var client = new global::Couchbase.CouchbaseClient(config); var cluster = new global::Couchbase.Management.CouchbaseCluster(config); var stats = client.Stats(); KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new Couchbase.CouchbaseStoreProvider(client, cluster, config.Bucket))); }
public void SetUp() { KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new KeyValueStorage.Redis.RedisStoreProvider(new ServiceStack.Redis.RedisClient()))); }
public void SetUp() { KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new SimpleMemoryStoreProvider())); }
public void SetUp() { string connString = "data source=ORCL;password=x;persist security info=True;user id=x"; KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new OracleStoreProvider(connString))); }
public void SetUp() { KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new LibGitStoreProvider(@"Git\G1"))); }
public void SetUp() { KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new KeyValueStorage.FSText.FSTextStoreProvider(@"C:\FSTextStore"))); }
public void SetUp() { string connString = @"data source=localhost\SQLEXPRESS;initial catalog=Test;User Id=Test;Password=test"; KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new SqlServerStoreProvider(connString))); }
public void SetUp() { KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new AzureTableStoreProvider(CloudStorageAccount.DevelopmentStorageAccount))); }