Example #1
0
 /// <inheritdoc />
 public async Task<bool> ReplayCommand(ICommand c)
 {
     var type = typeof(RetroactiveCommand<>).MakeGenericType(c.GetType());
     var command = (ICommand)Activator.CreateInstance(type, c, c.Timestamp);
     var handler = _commandRegistry.GetHandler(command);
     await handler.Handle(command);
     return true;
 }