internal ScriptTemplateControlMemberProxy(ScriptTemplateControlDictionary moduleGlobals) { _moduleGlobals = moduleGlobals; }
private bool HookUpScriptFile() { _buildResult = (TemplateControlBuildResult)EngineHelper.GetBuildResult(_scriptVirtualPath, this); // No script: nothing to do if (_buildResult == null || _buildResult.CompiledCode == null) return false; _scopeDictionary = new ScriptTemplateControlDictionary(_templateControl, this); _scope = EngineHelper.ScriptRuntime.CreateScope(_scopeDictionary); _attribs = new ScriptTemplateControlMemberProxy(_templateControl, _scopeDictionary); EngineHelper.ExecuteCode(_scope, _buildResult.CompiledCode, _buildResult.ScriptVirtualPath); _buildResult.InitMethods(_templateControl.GetType(), _scope); _buildResult.HookupEvents(this, _scope, _templateControl); return true; }
internal ScriptTemplateControlMemberProxy(object self, ScriptTemplateControlDictionary moduleGlobals) { _self = self; _moduleGlobals = moduleGlobals; }