Class ProjectionReader<TAuthenticationToken>
Reads projection streams from a Greg Young's Event sTore.
Inheritance
System.Object
ProjectionReader<TAuthenticationToken>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.EventStore
Assembly: Cqrs.EventStore.dll
Syntax
public abstract class ProjectionReader<TAuthenticationToken>
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of the authentication token. |
Constructors
ProjectionReader(IEventStoreConnectionHelper, IEventDeserialiser<TAuthenticationToken>)
Instantiates a new instance of ProjectionReader<TAuthenticationToken>.
Declaration
protected ProjectionReader(IEventStoreConnectionHelper eventStoreConnectionHelper, IEventDeserialiser<TAuthenticationToken> eventDeserialiser)
Parameters
Type | Name | Description |
---|---|---|
IEventStoreConnectionHelper | eventStoreConnectionHelper | |
IEventDeserialiser<TAuthenticationToken> | eventDeserialiser |
Properties
EventDeserialiser
The IEventDeserialiser<TAuthenticationToken> used to deserialise events.
Declaration
protected IEventDeserialiser<TAuthenticationToken> EventDeserialiser { get; set; }
Property Value
Type | Description |
---|---|
IEventDeserialiser<TAuthenticationToken> |
EventStoreConnectionHelper
The EventStore.ClientAPI.IEventStoreConnection used to read and write streams in the Greg Young Event Store.
Declaration
protected IEventStoreConnectionHelper EventStoreConnectionHelper { get; set; }
Property Value
Type | Description |
---|---|
IEventStoreConnectionHelper |
Methods
GetDataByStreamName(String)
Get a collection of data objects from a stream with the provided streamName
.
Declaration
protected IEnumerable<dynamic> GetDataByStreamName(string streamName)
Parameters
Type | Name | Description |
---|---|---|
System.String | streamName | The name of the stream to read events from. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Object> |
GetDataByStreamName<TData>(String)
Get a collection of TData
from a stream with the provided streamName
.
Declaration
protected IEnumerable<TData> GetDataByStreamName<TData>(string streamName)
Parameters
Type | Name | Description |
---|---|---|
System.String | streamName | The name of the stream to read events from. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TData> |
Type Parameters
Name | Description |
---|---|
TData |