Exemplo n.º 1
0
 private static string GetRootHelper(string machineName)
 {
     if (string.IsNullOrEmpty(machineName))
     {
         return(StringResult.FromNative(NativeCommon.FabricGetRoot()));
     }
     else
     {
         using (var pin = new PinCollection())
         {
             return(StringResult.FromNative(NativeCommon.FabricGetRoot2(pin.AddBlittable(machineName))));
         }
     }
 }