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