db4o

Db4oFactory.OpenServer Method (IConfiguration, String, Int32)

opens an ObjectServer on the specified database file and port.

If the server does not need to listen on a port because it will only be used in embedded mode with Db4objects.Db4o.IObjectServer.OpenClient , specify '0' as the port number.

public static IObjectServer OpenServer(
   IConfiguration config,
   string databaseFileName,
   int port
);

Parameters

config
a custom Configuration instance to be obtained via Db4objects.Db4o.Db4oFactory.NewConfiguration
databaseFileName
an absolute or relative path to the database file
port
the port to be used, or 0, if the server should not open a port, because it will only be used with Db4objects.Db4o.IObjectServer.OpenClient

Return Value

an ObjectServer listening on the specified port.

See Also

Db4oFactory Class | Db4objects.Db4o Namespace | Db4oFactory.OpenServer Overload List | Db4objects.Db4o.Config.IConfiguration.ReadOnly | Db4objects.Db4o.Config.IConfiguration.Encrypt | Db4objects.Db4o.Config.IConfiguration.Password