Inheritance: FunctionInvokerBase
        public override bool TryCreate(FunctionMetadata functionMetadata, out FunctionDescriptor functionDescriptor)
        {
            functionDescriptor = null;

            string extension = Path.GetExtension(functionMetadata.Source).ToLower();

            if (!ScriptFunctionInvoker.IsSupportedScriptType(extension))
            {
                return(false);
            }

            return(base.TryCreate(functionMetadata, out functionDescriptor));
        }
        public override bool TryCreate(FunctionMetadata functionMetadata, out FunctionDescriptor functionDescriptor)
        {
            if (functionMetadata == null)
            {
                throw new ArgumentNullException("functionMetadata");
            }

            functionDescriptor = null;

            if (!ScriptFunctionInvoker.IsSupportedScriptType(functionMetadata.ScriptType))
            {
                return(false);
            }

            return(base.TryCreate(functionMetadata, out functionDescriptor));
        }