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

eventStore EventStoreName

The EventStoreName the manager operates within.

namespace EventStoreNamespaceName

The EventStoreNamespaceName the manager operates within.

connection IChronicleConnection

The 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

subject string

The subject of the Identity to rename.

name string

The 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.