Skip to content

Instantly share code, notes, and snippets.

@joliver
Created March 18, 2011 02:35
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joliver/875528 to your computer and use it in GitHub Desktop.
Save joliver/875528 to your computer and use it in GitHub Desktop.
EventStore Fluent Builder API
return EventStore.Wireup.Init()
.UsingSqlPersistence("EventStore")
.InitializeDatabaseSchema()
.UsingCustomSerializer(new JsonSerializer())
.Compress()
.EncryptWith(EncryptionKey)
.UsingAsynchronousDispatcher()
.PublishTo(new DelegateMessagePublisher(DispatchCommit))
.HandleExceptionsWith(DispatchErrorHandler)
.Build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment