예제 #1
0
        private static string GetNamedPipeNameImplementation(string enlistmentRoot)
        {
            if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
            {
                return(MacPlatform.GetNamedPipeNameImplementation(enlistmentRoot));
            }

            // Not able to use WindowsPlatform here - because of its dependency on WindowsIdentity (and also kernel32.dll).
            return("GVFS_" + enlistmentRoot.ToUpper().Replace(':', '_'));
        }
예제 #2
0
 public static string GetNamedPipeName(string enlistmentRoot)
 {
     return(MacPlatform.GetNamedPipeNameImplementation(enlistmentRoot));
 }