/// <summary> /// Get Batch Context with keys /// </summary> public static BatchAccountContext GetBatchAccountContextWithKeys(BatchController controller, string accountName) { BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); BatchAccountContext context = client.ListKeys(null, accountName); return context; }
/// <summary> /// Get Batch Context with keys /// </summary> public static BatchAccountContext GetBatchAccountContextWithKeys(BatchController controller, string accountName) { BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); BatchAccountContext context = client.ListKeys(null, accountName); return(context); }