コード例 #1
0
 public ClientObjectContainer(ClientConfigurationImpl config, Socket4Adapter socket
     , string user, string password, bool login) : base(Db4oClientServerLegacyConfigurationBridge
         .AsLegacy(config))
 {
     // Db4o.registerClientConstructor(new ClientConstructor());
     _userName = user;
     _password = password;
     _login = login;
     _heartbeat = new ClientHeartbeat(this);
     _classInfoHelper = new ClassInfoHelper(Db4oClientServerLegacyConfigurationBridge.
         AsLegacy(config));
     SetAndConfigSocket(socket);
     Open();
     config.ApplyConfigurationItems(this);
 }
コード例 #2
0
		/// <exception cref="System.Exception"></exception>
		public virtual void SetUp()
		{
			_applied = new ArrayList();
			_config = (ClientConfigurationImpl)Db4oClientServer.NewClientConfiguration();
		}