/// <summary> /// Called to write save audit log entries. /// </summary> /// <param name="success">if set to <c>true</c> [success].</param> /// <param name="accessRuleDetails">The tenant details.</param> protected override void OnWriteSaveAuditLogEntries(bool success, AuditLogTenantDetails accessRuleDetails) { if (accessRuleDetails.IsTemporaryId) { // Tenant is being created AuditLog.OnCreateTenant(success, accessRuleDetails.TenantName); } }
/// <summary> /// Called to write delete audit log entries. /// </summary> /// <param name="success">if set to <c>true</c> [success].</param> /// <param name="accessRuleDetails">The tenant details.</param> protected override void OnWriteDeleteAuditLogEntries(bool success, AuditLogTenantDetails accessRuleDetails) { AuditLog.OnDeleteTenant(success, accessRuleDetails.TenantName); }