Ejemplo n.º 1
0
        public static void CompileFunction(string language, string functionFileName, string moduleName, string functionHandler)
        {
            FunctionFactory factory      = new FunctionFactory(BASE_PATH, PACKAGES_SUBPATH);
            string          functionPath = factory.CreateEnvironmentPath(BASE_PATH, language, functionFileName);
            IFunction       function     = factory.CompileFunction(functionPath, moduleName, functionHandler);

            Environment.SetEnvironmentVariable("BASE_PATH", functionPath);
            Environment.SetEnvironmentVariable("PUBLISH_PATH", ".");
        }