Table of Contents

Class PersonSecretAggregate

Namespace
InSite.Domain.Contacts
Assembly
Shift.Sdk.dll
public class PersonSecretAggregate : AggregateRoot
Inheritance
PersonSecretAggregate
Inherited Members
Extension Methods

Constructors

PersonSecretAggregate()

public PersonSecretAggregate()

Properties

Data

public PersonSecretState Data { get; }

Property Value

PersonSecretState

Methods

AddPersonSecret(Guid, string, string, string, DateTimeOffset, int?)

public void AddPersonSecret(Guid personId, string type, string name, string value, DateTimeOffset expiry, int? lifetime)

Parameters

personId Guid
type string
name string
value string
expiry DateTimeOffset
lifetime int?

CreateState()

Every aggregate must override this method to create the object that holds its current state.

public override AggregateState CreateState()

Returns

AggregateState

RemovePersonSecret(Guid, Guid)

public void RemovePersonSecret(Guid userId, Guid organizationId)

Parameters

userId Guid
organizationId Guid