예제 #1
0
        static void CreateClusterLoadData(string poolName)
        {
            var repo = new ClusterLoadRepository(_endpoint, _authKey, _database);

            repo.InitializeAsync().Wait();
            DeleteJobs(repo, poolName);
            DeleteNodes(repo, poolName);
            CreateJobs(repo, poolName);
            CreateNodes(repo, poolName);
        }
예제 #2
0
        static void CreateClusterConfig()
        {
            var repo = new ClusterLoadRepository(_endpoint, _authKey, _database);

            repo.InitializeAsync().Wait();

            var config = new ConfigPool();

            config.SubscriptionId = "";
            config.ClientId       = "";
            config.ClientSecret   = "";
            config.TenantId       = "";
            config.RgVmssName.Add("pinta-nodes,pinta00");
            config.RgVmssName.Add("pinta-nodes,a900");

            repo.CreateConfigPoolAsync(config).Wait();
        }
예제 #3
0
 public DocumentDBWatcher(string endpoint, string authKey, string databaseId)
 {
     _repo = new ClusterLoadRepository(endpoint, authKey, databaseId);
     _repo.InitializeAsync().Wait();
 }