joliver/EventStore — Issue #78: Lambda based fluent interface instead of indent based?
Author: lanwin
Created: 2011-10-18 08:32:54+00:00
State: open

The current fluent interface uses indents to seperate its subdependencies. But that its prolematic if you do a reformat.
What is your opinion on lamdba based fluent interfaces?

var store = Wireup.Init()
.UsingSqlPersistence("Name Of EventStore ConnectionString In Config File",x=>{
x.InitializeStorageEngine();
x.UsingJsonSerialization(s=>{
s.Copress();
s.EncryptWith(EncryptionKey);
})
.HookIntoPipelineUsing(new[] { new AuthorizationPipelineHook() })
.UsingAsynchronousDispatchScheduler(x=>{
x.DispatchTo(new My_NServiceBus_Or_MassTransit_OrEven_WCF_Adapter_Code());
})
.Build();