示例#1
0
 private static void SetDataRootHelper(string dataRoot, string machineName)
 {
     using (var pin = new PinCollection())
     {
         if (string.IsNullOrEmpty(machineName))
         {
             NativeCommon.FabricSetDataRoot(pin.AddBlittable(dataRoot));
         }
         else
         {
             NativeCommon.FabricSetDataRoot2(pin.AddBlittable(dataRoot), pin.AddBlittable(machineName));
         }
     }
 }