C# Class TastyDomainDriven.AppendOnlyStoreExtensions

显示文件 Open project: jaceenet/TastyDomainDriven

Public Methods

Method Description
AddEvents ( this dest, IEnumerable source, IEventSerializer serializer = null ) : void

Add events to an existing appender, events in order will be serialized as a single bytestream.

CopyAppender ( this source, IAppendOnlyStore to ) : void
CopyAppender ( this source, IAppendOnlyStore to, int version ) : void

Copy the content of one appender to another. The bytestreams will be identical. Use AddEvents(appender, events) to compress the bytestreams.

Method Details

AddEvents() public static method

Add events to an existing appender, events in order will be serialized as a single bytestream.
public static AddEvents ( this dest, IEnumerable source, IEventSerializer serializer = null ) : void
dest this appender
source IEnumerable events to add
serializer IEventSerializer
return void

CopyAppender() public static method

public static CopyAppender ( this source, IAppendOnlyStore to ) : void
source this
to IAppendOnlyStore
return void

CopyAppender() public static method

Copy the content of one appender to another. The bytestreams will be identical. Use AddEvents(appender, events) to compress the bytestreams.
public static CopyAppender ( this source, IAppendOnlyStore to, int version ) : void
source this
to IAppendOnlyStore
version int
return void