using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using NetMonitorServer.Controller; namespace NetMonitorServer { class ServerModel { private static volatile ServerModel instance; private static object syncRoot = new Object(); public static ServerModel Instance { get { if(instance == null) { lock(syncRoot) { if(instance == null) instance = new ServerModel(); } } return instance; } } private ServerModel() { openvpnInstances = new Dictionary(); } /// /// Openvpn Instanzen Dictionary /// public Dictionary openvpnInstances; } }