public static DependencyInjection GetInstance() { if (m_instance == null) //TODO: Locking needs to be implemented to support multi-core engines { m_instance = new DependencyInjection(); } return m_instance; }
/// <summary> /// Configuring the client api by creating objects using the dependency framework /// </summary> public void ConfigClient() { Logger.LogWrite("Creating instance of DI to cinfigure client api"); di = DependencyInjection.GetInstance(); mockRootServer = (IRootServer)di.CreateObject("root", new object[]{ this,new WSDualHttpBinding(),rootHostAddress}); mockAuthServer = (IAuthServer)di.CreateObject("auth", new object[]{ null,new BasicHttpBinding(),authHostAddress}); }