Exemple #1
0
 public WriteBatch(ClusterDB parent, string registryKey)
 {
     this.parent = parent;
     using (DisposeGuard disposeGuard = default(DisposeGuard))
     {
         disposeGuard.Add <ClusterDB.WriteBatch>(this);
         this.regKeyHandle = parent.OpenRegKey(registryKey, true, false);
         this.batchHandle  = this.regKeyHandle.CreateBatchUpdateRequest();
         disposeGuard.Success();
     }
 }
Exemple #2
0
 public static IClusterDB Open()
 {
     return(ClusterDB.Open(AmServerName.LocalComputerName));
 }