MessageHandler MH Sign Up

TestProjectionRestorer Restore Method

R

Definition

Package: MessageHandler.EventSourcing.Testing
Assembly: MessageHandler.EventSourcing.Testing
Namespace: MessageHandler.EventSourcing.Testing
Class: TestProjectionRestorer

Overloads

Method Description
Restore(string) Restore all models for a stream type.
Restore(string, Func<string,T>) Restore all models for a stream type.
Restore(string, string) Restore a specific model for a stream type.
Restore(string, string, Func<string,T>) Restore a specific model for a stream type.
Restore(IEnumerable) Restore a specific model for a stream of events.
Restore(IEnumerable, Func<string,T>) Restore a specific model for a stream of events.

Restore(string)

Restore all models for a stream type.

Parameters

streamType: System.String
The stream type.

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IDictionary>

Restore(string, Func<string,T>)

Restore all models for a stream type.

Parameters

streamType: System.String
The stream type.
factory: System.Func
A factory which instantiates the model.

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IDictionary>

Restore(string, string)

Restore a specific model for a stream type.

Parameters

streamType: System.String
The stream type
id: System.String
The id of the model

Returns

System.Threading.Tasks.Task

Restore(string, string, Func<string,T>)

Restore a specific model for a stream type.

Parameters

streamType: System.String
The stream type
id: System.String
The id of the model
factory: System.Func
A factory to construct the model

Returns

System.Threading.Tasks.Task

Restore(IEnumerable)

Restore a specific model for a stream of events.

Parameters

events: System.Collections.Generic.IEnumerable
The stream of events

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IDictionary>

Restore(IEnumerable, Func<string,T>)

Restore a specific model for a stream of events.

Parameters

events: System.Collections.Generic.IEnumerable
The stream of events
factory: System.Func
A factory to construct the model

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IDictionary>

Sign up to our newsletter to get notified about new content and releases

You can unsubscribe at any time by clicking the link in the footer of your emails. I use Mailchimp as my marketing platform. By clicking subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices here.