Example #1
0
 public ICommandRegistry <T> Create <TCommand>(Func <TCommand, T> creator, Func <string, IReadOnlyList <Event>, Task <IReadOnlyList <StreamVersion> > > save)
     where TCommand : ICommand
 {
     _registry.Create(creator, save);
     return(this);
 }
Example #2
0
 public ICommandRegistryWithDefaults <T> Create <TCommand>(Func <TCommand, T> creator) where TCommand : ICommand
 {
     _registry.Create(creator, _saveNew);
     return(this);
 }