ReadSharedMemoryString() public static method

public static ReadSharedMemoryString ( string id, long maxlen = -1 ) : string
id string
maxlen long
return string
Ejemplo n.º 1
0
        public static string GetSessionBusAddressFromSharedMemory()
        {
            string result = OSHelpers.ReadSharedMemoryString("DBusDaemonAddressInfo", 255);

            if (String.IsNullOrEmpty(result))
            {
                result = OSHelpers.ReadSharedMemoryString("DBusDaemonAddressInfoDebug", 255);                  // a DEBUG build of the daemon uses this different address...
            }
            return(result);
        }
Ejemplo n.º 2
0
        public static string GetSessionBusAddressFromSharedMemory(string suffix = "")
        {
            string result = OSHelpers.ReadSharedMemoryString(string.Format("DBusDaemonAddressInfo{0}", suffix));

            if (String.IsNullOrEmpty(result))
            {
                result = OSHelpers.ReadSharedMemoryString(string.Format("DBusDaemonAddressInfoDebug{0}", suffix));                  // a DEBUG build of the daemon uses this different address...
            }
            return(result);
        }