Interface ISnapshotStrategy<TAuthenticationToken>
Provides information about the ability to make and get Snapshot.
Namespace: Cqrs.Snapshots
Assembly: Cqrs.dll
Syntax
public interface ISnapshotStrategy<TAuthenticationToken>
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of the authentication token. |
Methods
IsSnapshotable(Type)
Indicates if the provided aggregateType
can have a Snapshot made or not.
Declaration
bool IsSnapshotable(Type aggregateType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | aggregateType | The System.Type of IAggregateRoot<TAuthenticationToken> to check. |
Returns
Type | Description |
---|---|
System.Boolean |
ShouldMakeSnapShot(IAggregateRoot<TAuthenticationToken>)
Indicates if the provided aggregate
should have a Snapshot made.
This does NOT indicate if the provided aggregate
can have a Snapshot made or not.
Declaration
bool ShouldMakeSnapShot(IAggregateRoot<TAuthenticationToken> aggregate)
Parameters
Type | Name | Description |
---|---|---|
IAggregateRoot<TAuthenticationToken> | aggregate | The IAggregateRoot<TAuthenticationToken> to check. |
Returns
Type | Description |
---|---|
System.Boolean |