Files
pos-system/services/iam-service-net/src/IamService.Domain/Events/RoleAssignedDomainEvent.cs
Ho Ngoc Hai 07f96a8eb2 feat(docs): Enhance Vietnamese documentation with new sections and updates
- Added new sections on API Design, Caching Patterns, and Testing Patterns to the Vietnamese documentation.
- Updated sidebar configurations for improved navigation and accessibility.
- Removed outdated onboarding guides to streamline content and focus on relevant resources.
2026-01-12 13:36:53 +07:00

24 lines
637 B
C#

using IamService.Domain.SeedWork;
namespace IamService.Domain.Events;
/// <summary>
/// EN: Domain event raised when a role is assigned to a user.
/// VI: Domain event được raise khi role được gán cho user.
/// </summary>
public class RoleAssignedDomainEvent : IDomainEvent
{
public Guid UserId { get; }
public Guid RoleId { get; }
public string RoleName { get; }
public DateTime OccurredOn { get; }
public RoleAssignedDomainEvent(Guid userId, Guid roleId, string roleName)
{
UserId = userId;
RoleId = roleId;
RoleName = roleName;
OccurredOn = DateTime.UtcNow;
}
}