C# Class Ncqrs.Eventing.Storage.WindowsAzure.AzureEventStore

Inheritance: IEventStore
Afficher le fichier Open project: SzymonPobiega/ncqrs

Méthodes publiques

Méthode Description
AzureEventStore ( ) : System
AzureEventStore ( Microsoft.WindowsAzure.CloudStorageAccount storageAccount ) : System
ClearStore ( ) : void
GetAllEvents ( System.Guid eventSourceId ) : IEnumerable

Get all events provided by an specified event provider.

GetAllEventsSinceVersion ( System.Guid eventSourceId, long version ) : IEnumerable
Save ( IEventSource source ) : void

Save all events from a specific event provider.

Private Methods

Méthode Description
DeserializeEventEntity ( SourcedEventEntity sourcedEventEntity ) : SourcedEvent
GetBlobAddress ( SourcedEventEntity sourcedEventEntity ) : string
GetSourceFromStore ( Microsoft.WindowsAzure.StorageClient.TableServiceContext context, System.Guid eventSourceId ) : EventSourceEntity
InitializeStorage ( ) : void
InsertNewEventSource ( Microsoft.WindowsAzure.StorageClient.TableServiceContext context, IEventSource source ) : EventSourceEntity
PushEventToStore ( Microsoft.WindowsAzure.StorageClient.TableServiceContext context, System.Guid eventSourceId, IEnumerable events ) : void

Method Details

AzureEventStore() public méthode

public AzureEventStore ( ) : System
Résultat System

AzureEventStore() public méthode

public AzureEventStore ( Microsoft.WindowsAzure.CloudStorageAccount storageAccount ) : System
storageAccount Microsoft.WindowsAzure.CloudStorageAccount
Résultat System

ClearStore() public méthode

public ClearStore ( ) : void
Résultat void

GetAllEvents() public méthode

Get all events provided by an specified event provider.
public GetAllEvents ( System.Guid eventSourceId ) : IEnumerable
eventSourceId System.Guid The id of the event source that owns the events.
Résultat IEnumerable

GetAllEventsSinceVersion() public méthode

public GetAllEventsSinceVersion ( System.Guid eventSourceId, long version ) : IEnumerable
eventSourceId System.Guid
version long
Résultat IEnumerable

Save() public méthode

Save all events from a specific event provider.
Occurs when there is already a newer version of the event provider stored in the event store. source == null
public Save ( IEventSource source ) : void
source IEventSource The source that should be saved.
Résultat void