public static IInvoker GetFunctionInvoker(
            string language, string functionName, string moduleName, string functionHandler,
            int timeout = 180000)
        {
            FunctionCompiler.PublishTestFunction(language, functionName);

            var function = new CompiledFunction(moduleName, functionHandler, functionName);
            var invoker  = new CompiledFunctionInvoker(function, timeout);

            return(invoker);
        }
Esempio n. 2
0
        public static IInvoker GetFunctionInvoker(
            string language, string functionName, string moduleName, string functionHandler,
            int timeout = 180000)
        {
            FunctionCompiler.PublishTestFunction(language, functionName);
            var publishPath = Environment.GetEnvironmentVariable("PUBLISH_PATH");

            var function = new CompiledFunction(moduleName, functionHandler, publishPath, functionName);
            var invoker  = new CompiledFunctionInvoker(function, timeout, publishPath);

            return(invoker);
        }