public bool CanInvoke() { return State == ScriptHostState.Created || State == ScriptHostState.Running; }