private bool DispatchIncomingCommandToInterceptors(CommandDTO commandDTO) { if (inboundCommandInterceptors.ContainsKey(commandDTO.GetType())) { return inboundCommandInterceptors[commandDTO.GetType()].InboundIntercept(commandDTO); } return true; }
private bool DispatchOutgoingCommandToInterceptors(CommandDTO commandDTO) { if (outboundCommandInterceptors.ContainsKey(commandDTO.GetType())) { return outboundCommandInterceptors[commandDTO.GetType()].OutboundIntercept(commandDTO); } return true; }