示例#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);
 }
示例#2
0
 public ICommandRegistryWithDefaults <T> Create <TCommand>(Func <TCommand, T> creator) where TCommand : ICommand
 {
     _registry.Create(creator, _saveNew);
     return(this);
 }