Class OrganizationMemberAddedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a member is added to an organization.
public sealed record OrganizationMemberAddedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<OrganizationMemberAddedEvent>
- Inheritance
-
OrganizationMemberAddedEvent
- Implements
- Inherited Members
Constructors
OrganizationMemberAddedEvent(string, string, string, string, DateTimeOffset, string?)
Integration event raised when a member is added to an organization.
public OrganizationMemberAddedEvent(string OrganizationId, string UserId, string Email, string Role, DateTimeOffset AddedAt, string? AddedBy)
Parameters
OrganizationIdstringThe unique identifier of the organization.
UserIdstringThe unique identifier of the user.
EmailstringThe user's email address.
RolestringThe role assigned to the member.
AddedAtDateTimeOffsetThe timestamp when the member was added.
AddedBystringThe identifier of the user who added the member.
Properties
AddedAt
The timestamp when the member was added.
public DateTimeOffset AddedAt { get; init; }
Property Value
AddedBy
The identifier of the user who added the member.
public string? AddedBy { get; init; }
Property Value
The user's email address.
public string Email { get; init; }
Property Value
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
OrganizationId
The unique identifier of the organization.
public string OrganizationId { get; init; }
Property Value
Role
The role assigned to the member.
public string Role { get; init; }
Property Value
UserId
The unique identifier of the user.
public string UserId { get; init; }