netmonitor/NetMonitorServer/ServerModel.cs
2015-03-04 22:21:34 +00:00

32 lines
834 B
C#

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<string, OpenVpnController>();
}
/// <summary>
/// Openvpn Instanzen Dictionary
/// </summary>
public Dictionary<string, OpenVpnController> openvpnInstances;
}
}