private static string GetLogRootHelper(string machineName) { if (string.IsNullOrEmpty(machineName)) { return(StringResult.FromNative(NativeCommon.FabricGetLogRoot())); } else { using (var pin = new PinCollection()) { return(StringResult.FromNative(NativeCommon.FabricGetLogRoot2(pin.AddBlittable(machineName)))); } } }