Snapshotter

Hierarchy

  • Snapshotter

Implements

Index

Methods

Methods

getSnapshotOf

getSnapshotOf(EventSourceableType: EventSourceableType, eventSourceableId: string | Guid): Promise‹EventSourceable | undefined›

Implementation of Snapshotter

Restores snapshotted event sourceable from storage.

async

Parameters:

NameTypeDescription
EventSourceableTypeEventSourceableTypeEvent sourceable type(constructor).
eventSourceableIdstring | GuidIdentifier as string or Guid instance.

Returns: Promise‹EventSourceable | undefined›

Instance as a snapshot implementing EventSourceable interface, else undefined.


initialize

initialize(): void

Initializes Snapshotter.

Returns: void


makeSnapshotOf

makeSnapshotOf(eventSourceable: EventSourceable): Promise‹string | undefined›

Implementation of Snapshotter

Snapshots Event Sourceable.

async

Parameters:

NameTypeDescription
eventSourceableEventSourceableInstance implementing EventSourceable interface.

Returns: Promise‹string | undefined›

Identifier of snapshot on storage.