Moves media library scanning to domain layer

This commit is contained in:
BinaryAlley committed 2025-02-16 21:45:26 +02:00
1 parent 8b51abe0b2
commit c4246d2e69
209 files changed
+3793 -641

No files matched your search

@@ -22,19 +22,11 @@ public abstract class AggregateRoot<TId> : Entity<TId> where TId : notnull
Id = id;
}
/// <summary>
/// Initializes a new instance of the <see cref="AggregateRoot{TId}"/> class.
/// </summary>
protected AggregateRoot() // only needed during reflection
{
}
/// <summary>
/// Retrieves and clears all domain events associated with this aggregate root.
/// </summary>
/// <returns>A list of all domain events that were raised by this aggregate root.</returns>
public List<IDomainEvent> PopDomainEvents()
public List<IDomainEvent> GetDomainEvents()
{
List<IDomainEvent> domainEventsCopy = [.. _domainEvents];
_domainEvents.Clear();
+2 -12
View File
@@ -1,4 +1,4 @@
#region ========================================================================= USING =====================================================================================
#region ========================================================================= USING =====================================================================================
using System;
#endregion
@@ -34,16 +34,6 @@ public abstract class Entity<TId> : IEquatable<Entity<TId>> where TId : notnull
Id = id;
}
#pragma warning disable CS8618
/// <summary>
/// Initializes a new instance of the <see cref="Entity{TId}"/> class.
/// </summary>
protected Entity() // only needed during reflection
{
}
#pragma warning restore CS8618
/// <summary>
/// Indicates whether the current object is equal to another object of the same type.
/// </summary>
@@ -94,4 +84,4 @@ public abstract class Entity<TId> : IEquatable<Entity<TId>> where TId : notnull
{
return Id.GetHashCode();
}
}
}