public static SingletonServiceLocator Instance() { if (_instance == null) { _instance = new SingletonServiceLocator(); } return(_instance); }
public void Dispose() { Clear(); _instance = null; }
private SingletonServiceLocator() { _services = new Dictionary <Type, object>(); _instance = this; }