Db4oFactory.

OpenServer(IConfiguration, string, int) Method

Summary

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 Db4oClientServer class in db4o client server library for methods to open db4o servers and db4o clients.")]
public static IObjectServer OpenServer(IConfiguration config, string databaseFileName, int port)

Attributes

Type Description
ObsoleteAttribute

Parameters

Name Type Description
config IConfiguration a custom Db4objects.Db4o.Config.IConfiguration instance to be obtained via Db4objects.Db4o.Db4oEmbedded.NewConfiguration
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)