Exemple #1
0
 /// <summary>
 /// Constructor for observer working on retrieving classes for a Namespace
 /// </summary>
 /// <param name="wmiNamespace">Instance of WmiNamespace for which to enumerate classes</param>
 public ObserverHandler(WmiNamespace wmiNamespace)
 {
     _wmiNamespace = wmiNamespace;
     _wmiNamespace.IsEnumerating = true;
     _isNamespace = true;
     _stopwatch.Start();
 }
Exemple #2
0
 // Constructor to create Wmi Node for the specified namespace
 public WmiNode(ManagementObject wmiNamespace)
 {
     WmiNamespace = new WmiNamespace(wmiNamespace);
     //_connection = wmiNamespace.Scope.Options;
 }