Esempio n. 1
0
 private AuditingPolicy WrapPolicy(DatabaseSecurityPolicy policy)
 {
     AuditingPolicy wrapper = new AuditingPolicy();
     DatabaseSecurityPolicyProperties properties = policy.Properties;
     wrapper.UseServerDefault = properties.UseServerDefault;
     wrapper.IsEnabled = properties.IsAuditingEnabled;
     wrapper.StorageAccountName = properties.StorageAccountName;
     AddEventTypesToWrapperFromPolicy(wrapper, properties);
     this.FetchedProperties = properties;           
     return wrapper;
 }
Esempio n. 2
0
 private AuditingPolicy WrapPolicy(DatabaseSecurityPolicy policy)
 {
     AuditingPolicy wrapper = new AuditingPolicy();
     DatabaseSecurityPolicyProperties properties = policy.Properties;
     wrapper.UseServerDefault = properties.UseServerDefault;
     wrapper.IsEnabled = properties.IsAuditingEnabled;
     wrapper.DirectAccessEnabled = !properties.IsBlockDirectAccessEnabled;
     addStorageInfoToWrapperFromPolicy(wrapper, properties);
     AddEventTypesToWrapperFromPolicy(wrapper, properties);
     this.FetchedProperties = properties;           
     return wrapper;
 }