src/OneBeyond.Studio.EntityAuditing/OneBeyond.Studio.EntityAuditing.Infrastructure/AuditDataProvider.cs
File AuditDataProvider.cs
has 411 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
Class AuditDataProvider
has 22 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public sealed class AuditDataProvider : Audit.Core.AuditDataProvider
{
private readonly IServiceProvider _serviceProvider;
private readonly EntityAuditingOptions _options;
Method ProcessEventAsync
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private async Task<object> ProcessEventAsync(
Audit.Core.AuditEvent auditEvent,
CancellationToken cancellationToken)
{
if (auditEvent is not AuditEventEntityFramework efAudit)
Method AddCollectionNavigationChanges
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void AddCollectionNavigationChanges(
IEnumerable<EventEntry> allChanges,
EventEntry currentEntry,
AuditEvent auditEventEntity,
CollectionEntry navigation)
Method AddManyToManyNavigationChanges
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void AddManyToManyNavigationChanges(
IEnumerable<EventEntry> allChanges,
AuditEvent auditEventEntity,
CollectionEntry navigation,
string navigationName,
Method AddManyToManyNavigationChanges
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
IEnumerable<EventEntry> allChanges,
AuditEvent auditEventEntity,
CollectionEntry navigation,
string navigationName,
Type navigationType,
Method AddValueObjectAuditEvent
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
IEnumerable<EventEntry> allChanges,
AuditEvent auditEventEntity,
ReferenceEntry navigation,
Type navigationType,
string navigationName)