SnapServerDatabaseBaseCreateClientDatabase Method

Creates a ClientDatabaseBase.

Definition

Namespace: SnapDB.Snap.Services
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public abstract ClientDatabaseBase CreateClientDatabase(
	SnapClient client,
	Action<ClientDatabaseBase> onDispose
)

Parameters

client  SnapClient
The SnapClient associated with the new client-specific database.
onDispose  ActionClientDatabaseBase
An action to be executed when the client-specific database is disposed.

Return Value

ClientDatabaseBase
A new instance of the client-specific database derived from ClientDatabaseBase.

Remarks

The CreateClientDatabase(SnapClient, ActionClientDatabaseBase) method is used to create a new instance of a client-specific database associated with this SnapServerDatabase. It takes a SnapClient as a parameter to associate the new database with a specific client. Additionally, an optional action can be provided to be executed when the client-specific database is disposed.

See Also