示例#1
0
 public void Add(ICommandResultWriter writer)
 {
     writers.Add(writer.CommandType, writer);
 }
示例#2
0
 public bool TryFindWriter(ICommand command, out ICommandResultWriter writer) => writers.TryGetValue(command.GetType(), out writer);