Assets.Scripts.Services.Communication.WebSocketService.DispatchIncomingCommandToInterceptors C# (CSharp) Method

DispatchIncomingCommandToInterceptors() private method

private DispatchIncomingCommandToInterceptors ( CommandDTO commandDTO ) : bool
commandDTO Assets.Scripts.Services.Communication.DTOs.CommandDTO
return bool
        private bool DispatchIncomingCommandToInterceptors(CommandDTO commandDTO)
        {
            if (inboundCommandInterceptors.ContainsKey(commandDTO.GetType()))
            {
                return inboundCommandInterceptors[commandDTO.GetType()].InboundIntercept(commandDTO);
            }
            return true;
        }