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

Inheritance: IEventStore
Mostra file Open project: SzymonPobiega/ncqrs

Public Methods

Method 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

Method 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 method

public AzureEventStore ( ) : System
return System

AzureEventStore() public method

public AzureEventStore ( Microsoft.WindowsAzure.CloudStorageAccount storageAccount ) : System
storageAccount Microsoft.WindowsAzure.CloudStorageAccount
return System

ClearStore() public method

public ClearStore ( ) : void
return void

GetAllEvents() public method

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.
return IEnumerable

GetAllEventsSinceVersion() public method

public GetAllEventsSinceVersion ( System.Guid eventSourceId, long version ) : IEnumerable
eventSourceId System.Guid
version long
return IEnumerable

Save() public method

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.
return void