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); }
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(); }
public DocumentDBWatcher(string endpoint, string authKey, string databaseId) { _repo = new ClusterLoadRepository(endpoint, authKey, databaseId); _repo.InitializeAsync().Wait(); }