public void Add(ICommandResultWriter writer) { writers.Add(writer.CommandType, writer); }
public bool TryFindWriter(ICommand command, out ICommandResultWriter writer) => writers.TryGetValue(command.GetType(), out writer);