private void RegisterScriptSituationDelegate(IGeneratedScriptProgram DelegateScript) { // // Dispatch delay continuations from the DBLibraryScript over to // NWScript code. // if (Script.DelegateScriptObject != DelegateScript) { if (Script.DelegateScriptObject != null) throw new ApplicationException("Duplicate delegate script registration."); Script.DelegateScriptObject = DelegateScript; } }