Interface IIdentityManager
- Namespace
- Cratis.Chronicle.Identities
- Assembly
- Cratis.Chronicle.dll
Defines a manager of identities in the system.
public interface IIdentityManager
- Extension Methods
Methods
Rename(string, string)
Renames the name of an identity, identified by its subject.
Task Rename(string subject, string name)
Parameters
subjectstringThe subject of the Identity to rename.
namestringThe new name to give the identity.
Returns
- Task
Awaitable task.
Remarks
The subject is the stable identifier of the identity - the name is the display name and can change over time, for instance when a person changes their name. Renaming an identity affects every event and read model that refers to the identity, as the name is resolved from the identity itself and not stored with what refers to it.