Ejemplo n.º 1
0
        private bool TestCommand(IGSCommand gSCommand, string pattern)
        {
            string command = gSCommand.GetCommand();

            command = RemoveWhitespaces(command);
            return(Regex.Match(command, pattern).Success);
        }
Ejemplo n.º 2
0
 private StringContent GetCommandContent(IGSCommand command)
 {
     return(new StringContent(command.GetCommand(), Encoding.UTF8, "application/json"));
 }