public int GetActiveScriptId(object script) { EvaluationContext context = this; lock (context) { return this._activeScripts.IndexOf(script); } }