Beispiel #1
0
 public async Task <object> TestSupported(dynamic input)
 {
     try
     {
         object[] files = (object[])input.files;
         return(await mInstaller.TestSupported(new List <string>(files.Cast <string>())));
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         throw e;
     }
 }
        public async Task <object> TestSupported(dynamic input)
        {
            object[]      files = (object[])input.files;
            List <string> allowedTypes;

            try
            {
                allowedTypes = new List <string>(((object[])input.allowedTypes).Cast <string>());
            } catch (RuntimeBinderException)
            {
                allowedTypes = new List <string> {
                    "XmlScript", "CSharpScript", "Basic"
                };
            }
            return(await mInstaller.TestSupported(new List <string>(files.Cast <string>()), allowedTypes));
        }