Class IdentityManager
- Namespace
- Cratis.Chronicle.Identities
- Assembly
- Cratis.Chronicle.dll
Represents an implementation of IIdentityManager that proxies to the Chronicle kernel over the client connection.
public class IdentityManager : IIdentityManager
- Inheritance
-
IdentityManager
- Implements
- Inherited Members
- Extension Methods
Constructors
IdentityManager(EventStoreName, EventStoreNamespaceName, IChronicleConnection)
Represents an implementation of IIdentityManager that proxies to the Chronicle kernel over the client connection.
public IdentityManager(EventStoreName eventStore, EventStoreNamespaceName @namespace, IChronicleConnection connection)
Parameters
eventStoreEventStoreNameThe EventStoreName the manager operates within.
namespaceEventStoreNamespaceNameThe EventStoreNamespaceName the manager operates within.
connectionIChronicleConnectionThe IChronicleConnection for talking to the kernel.
Methods
Rename(string, string)
Renames the name of an identity, identified by its subject.
public 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.