Db4oFactory.

OpenServer(string, int) Method

Summary

Operates just like Db4objects.Db4o.Db4oFactory.OpenServer(Db4objects.Db4o.Config.IConfiguration,System.String,System.Int32) , but uses the global db4o Db4objects.Db4o.Config.IConfiguration context. opens an Db4objects.Db4o.IObjectServer 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.
Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o
Containing Type
Db4oFactory

Syntax

[System.ObsoleteAttribute(@"See the Db4objects.Db4o.CS.Db4oClientServer class in db4o client server library for methods to open db4o servers and db4o clients.")]
public static IObjectServer OpenServer(string databaseFileName, int port)

Attributes

Type Description
ObsoleteAttribute

Parameters

Name Type Description
databaseFileName string an absolute or relative path to the database file
port int 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 . Specify a value < 0 if an arbitrary free port should be chosen - see Db4objects.Db4o.Ext.IExtObjectServer.Port .

Return Value

Type Description
IObjectServer an Db4objects.Db4o.IObjectServer listening on the specified port.

See Also

  • Db4objects.Db4o.Config.IConfiguration.ReadOnly(System.Boolean)
  • Db4objects.Db4o.Config.IConfiguration.Encrypt(System.Boolean)
  • Db4objects.Db4o.Config.IConfiguration.Password(System.String)