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

DispatchOutgoingCommandToInterceptors() private method

private DispatchOutgoingCommandToInterceptors ( CommandDTO commandDTO ) : bool
commandDTO Assets.Scripts.Services.Communication.DTOs.CommandDTO
return bool
        private bool DispatchOutgoingCommandToInterceptors(CommandDTO commandDTO)
        {
            if (outboundCommandInterceptors.ContainsKey(commandDTO.GetType()))
            {
                return outboundCommandInterceptors[commandDTO.GetType()].OutboundIntercept(commandDTO);
            }
            return true;
        }