Beispiel #1
0
 private void RegisterRunningObject()
 {
     if (_comRunningObj == null)
     {
         _comRunningObj = new COMRunningObject(this, RUNNING_OBJECT_NAME);
     }
 }
Beispiel #2
0
 /// <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;
     }
 }