private void RegisterRunningObject() { if (_comRunningObj == null) { _comRunningObj = new COMRunningObject(this, RUNNING_OBJECT_NAME); } }
/// <summary> /// Release the resources. /// </summary> public void Dispose() { if (_comRunningObj != null) { _comRunningObj.Dispose(); _comRunningObj = null; } if (_service != null) { _service.Dispose(); _service = null; } if (_session != null) { _session = null; } }