public static CastleContainer CreateInstance() { if (_instance == null) { lock (_locker) { if (_instance == null) { _instance = new CastleContainer(); } } } return(_instance); }
private UserService() { usrDao = CastleContainer.CreateInstance().Resolve <IUserDao>(); speaker = CastleContainer.CreateInstance().Resolve <ISpeak>(); }