public Task InitializeMembershipTable(GlobalConfiguration globalConfiguration, bool tryInitTableVersion, TraceLogger traceLogger)
 {
     Couchbase.Configuration.Client.ClientConfiguration clientConfig = new Couchbase.Configuration.Client.ClientConfiguration();
     clientConfig.Servers.Clear();
     clientConfig.Servers.Add(new Uri(globalConfiguration.DataConnectionString));
     clientConfig.BucketConfigs.Clear();
     clientConfig.BucketConfigs.Add("membership", new Couchbase.Configuration.Client.BucketConfiguration
     {
         BucketName = "membership",
         Username   = "",
         Password   = ""
     });
     manager = new MembershipDataManager("membership", clientConfig);
     return(TaskDone.Done);
 }
        public Task InitializeGatewayListProvider(ClientConfiguration clientConfiguration, TraceLogger traceLogger)
        {
            Couchbase.Configuration.Client.ClientConfiguration clientConfig = new Couchbase.Configuration.Client.ClientConfiguration();
            clientConfig.Servers.Clear();
            clientConfig.Servers.Add(new Uri(clientConfiguration.DataConnectionString));
            clientConfig.BucketConfigs.Clear();
            clientConfig.BucketConfigs.Add("membership", new Couchbase.Configuration.Client.BucketConfiguration
            {
                BucketName = "membership",
                Username   = "",
                Password   = ""
            });
            manager = new MembershipDataManager("membership", null);

            refreshRate = clientConfiguration.GatewayListRefreshPeriod;
            return(TaskDone.Done);
        }