Created
April 26, 2011 17:31
-
-
Save darrencauthon/942704 to your computer and use it in GitHub Desktop.
Sample SimpleCQRS Runtime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AppRuntime : SimpleCqrsRuntime<UnityServiceLocator> | |
{ | |
private readonly string connectionString; | |
public AppRuntime(string connectionString) | |
{ | |
this.connectionString = connectionString; | |
} | |
protected override IEventStore GetEventStore(IServiceLocator serviceLocator) | |
{ | |
return new SqlServerEventStore(new SqlServerConfiguration(connectionString), new JsonDomainEventSerializer()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment