/// <summary> /// Initializes a new instance of the <see cref="GlobalMutex"/> class. /// </summary> public GlobalMutex(string name) { m_name = name; #if __MonoCS__ m_adapter = new LinuxGlobalMutexAdapter(name); #else m_adapter = new WindowsGlobalMutexAdapter(name); #endif }
/// <summary> /// Initializes a new instance of the <see cref="GlobalMutex"/> class. /// </summary> public GlobalMutex(string name) { m_name = name; #if __MonoCS__ m_adapter = new LinuxGlobalMutexAdapter(name); #else m_adapter = new WindowsGlobalMutexAdapter(name); #endif }
/// <summary> /// Initializes a new instance of the <see cref="GlobalMutex"/> class. /// </summary> public GlobalMutex(string name) { _name = name; if (!Platform.IsWindows) { _adapter = new LinuxGlobalMutexAdapter(name); } else { _adapter = new WindowsGlobalMutexAdapter(name); } }
public ReleaseDisposable(IGlobalMutexAdapter adapter) { _adapter = adapter; }
public ReleaseDisposable(IGlobalMutexAdapter adapter) { m_adapter = adapter; }