private void LaunchApplication(LaunchAppCommand command)
        {
            Logger.Log("Launching application. AppID: {0}", command.AppId);

            var app = _appConfig.AppProperties[command.AppId.ToString()];

            Process.Start(app.Command, app.Arguments);
        }
        private ICommand ParseLaunchAppCommand()
        {
            var launchAppCommand = new LaunchAppCommand();

            launchAppCommand.Length = GetLength();

            if (_unparsedData.Count < launchAppCommand.Length + 3)
            {
                return(null);
            }
            else
            {
                var data = _unparsedData.GetRange(0 + 3, launchAppCommand.Length);
                launchAppCommand.AppId = data[0];

                RemoveMessageFromQueue(launchAppCommand.Length);
                return(launchAppCommand);
            }
        }