Exemple #1
0
 public async Task DeletePolicyLookupPath(string subscriptionId, string policyName)
 {
     var item = new PolicyLookupPathEntity {
         PartitionKey = subscriptionId, RowKey = policyName
     };
     await TableUtil.DeleteTableItem(item, Tables.PolicyLookupPaths);
 }
Exemple #2
0
        public async Task <string> SavePolicyLookupPath(string subscriptionId, string policyName, string lookupPath)
        {
            var lookupPathEntity = new PolicyLookupPathEntity {
                PartitionKey = subscriptionId, RowKey = policyName, PolicyLookupPath = lookupPath
            };
            var policyLookupEntity = await TableUtil.SaveTableItem(lookupPathEntity, Tables.PolicyLookupPaths);

            return(policyLookupEntity.PolicyLookupPath);
        }