示例#1
0
        private static string GetNamedPipeNameImplementation(string enlistmentRoot)
        {
            if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
            {
                return(LinuxPlatform.GetNamedPipeNameImplementation(enlistmentRoot));
            }
            else 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(LinuxPlatform.GetNamedPipeNameImplementation(enlistmentRoot));
 }