private ObjectServerImpl(LocalObjectContainer container, ServerConfigurationImpl serverConfig, int port, bool isEmbeddedServer) { _isEmbeddedServer = isEmbeddedServer; _container = container; _serverConfig = serverConfig; _socketFactory = serverConfig.Networking.SocketFactory; _transactionPool = new ClientTransactionPool(container); _port = port; _name = "db4o ServerSocket FILE: " + container.ToString() + " PORT:" + _port; _container.SetServer(true); ConfigureObjectServer(); _classInfoHelper = new Db4objects.Db4o.CS.Internal.ClassInfoHelper(Db4oClientServerLegacyConfigurationBridge .AsLegacy(serverConfig)); _container.ClassCollection().CheckAllClassChanges(); bool ok = false; try { EnsureLoadStaticClass(); StartCommittedCallbackThread(_committedInfosQueue); StartServer(); if (_serverConfig != null) { _serverConfig.ApplyConfigurationItems(this); } ok = true; } finally { if (!ok) { Close(); } } }
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); }
private ObjectServerImpl(LocalObjectContainer container, ServerConfigurationImpl serverConfig, int port, bool isEmbeddedServer) { _isEmbeddedServer = isEmbeddedServer; _container = container; _serverConfig = serverConfig; _socketFactory = serverConfig.Networking.SocketFactory; _transactionPool = new ClientTransactionPool(container); _port = port; _name = "db4o ServerSocket FILE: " + container.ToString() + " PORT:" + _port; _container.SetServer(true); ConfigureObjectServer(); _classInfoHelper = new Db4objects.Db4o.CS.Internal.ClassInfoHelper(Db4oClientServerLegacyConfigurationBridge .AsLegacy(serverConfig)); _container.ClassCollection().CheckAllClassChanges(); bool ok = false; try { EnsureLoadStaticClass(); StartCommittedCallbackThread(_committedInfosQueue); StartServer(); if (_serverConfig != null) { _serverConfig.ApplyConfigurationItems(this); } ok = true; } finally { if (!ok) { Close(); } } }
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); }