feat: implement SignalR notifications for project status changes
This commit is contained in:
@@ -159,7 +159,7 @@ public class TaskSection : EntityBase<Guid>
|
||||
{
|
||||
var oldStatus = Status;
|
||||
Status = status;
|
||||
AddDomainEvent(new TaskSectionStatusChangedEvent(Id, oldStatus, status));
|
||||
AddDomainEvent(new TaskSectionStatusChangedEvent(Id, oldStatus, status,CurrentAssignedUserId));
|
||||
}
|
||||
|
||||
public TimeSpan GetTotalTimeSpent()
|
||||
|
||||
@@ -104,7 +104,8 @@ public record TaskSectionRemovedEvent(Guid TaskId, Guid SectionId) : IDomainEven
|
||||
}
|
||||
|
||||
// TaskSection Events
|
||||
public record TaskSectionStatusChangedEvent(Guid SectionId, TaskSectionStatus OldStatus, TaskSectionStatus NewStatus) : IDomainEvent
|
||||
public record TaskSectionStatusChangedEvent(Guid SectionId, TaskSectionStatus OldStatus,
|
||||
TaskSectionStatus NewStatus,long UserId) : IDomainEvent
|
||||
{
|
||||
public DateTime OccurredOn { get; init; } = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user