private BatchConfiguration CreateIntegrationAccountBatchConfiguration(string batchConfigurationName) { var batchConfigurationProperties = new BatchConfigurationProperties("batchGroupName", new BatchReleaseCriteria(batchSize: 10)); var batchConfiguration = new BatchConfiguration(batchConfigurationProperties, location: Constants.DefaultLocation, name: batchConfigurationName); return(batchConfiguration); }
/// <summary> /// Convert string content to BatchConfigurationProperties object. /// </summary> /// <param name="content">The agreement content.</param> /// <returns>AgreementContent object.</returns> internal static BatchConfigurationProperties ConvertToBatchConfigurationProperties(string content) { BatchConfigurationProperties batchConfigurationProperties = null; if (!string.IsNullOrEmpty(content)) { batchConfigurationProperties = JsonConvert.DeserializeObject <BatchConfiguration>(content).Properties; } return(batchConfigurationProperties); }