32 lines
834 B
C#
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;
|
|||
|
}
|
|||
|
}
|