db4o

Db4oFactory.OpenServer Method (String, Int32)

Operates just like Db4objects.Db4o.Db4oFactory.OpenServer , but uses the global db4o Configuration context. 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(
   string databaseFileName,
   int port
);

Parameters

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