Esempio n. 1
0
        private void executeCode(string code)
        {
            try
            {
                ExecuteRequest request = new ExecuteRequest();
                request.Code = code;
                var response = mrsServer.ExecuteCode(sessionId, request);

                if (response.Success == false)
                {
                    throw new Exception(response.ErrorMessage);
                }
            }
            catch (Exception e)
            {
                throw new Exception("Execute Code Failed : " + e.Message);
            }
        }