예제 #1
0
        private static ScriptProcessor CreateProcessor()
        {
            var processor = new ScriptProcessor(_prototypeBuffer);

            ScriptContextManipulator.SetCallbackExecuteMethod(processor, ExecuteMethod);

            return(processor);
        }
예제 #2
0
        private ScriptProcessor CreateProcessor()
        {
            if (_prototypeBuffer == null)
            {
                InitializePrototypeBuffer();
            }

            var processor = new ScriptProcessor(_prototypeBuffer);

            ScriptContextManipulator.SetCallbackExecuteMethod(processor, ExecuteMethod);

            return(processor);
        }