Table of Contents

Interface IDatabase

Namespace
Acuit.Pinpoint.Server
Assembly
Acuit.Pinpoint.Server.Abstractions.dll

Services provided by a database to plug-ins.

public interface IDatabase

Properties

Configuration

Gets the effective collection of key/value configuration settings for the database. This will throw an exception if the database could not be successfully initialized.

IConfigurationRoot Configuration { get; }

Property Value

IConfigurationRoot

DatabaseId

Gets the database identifier.

int DatabaseId { get; }

Property Value

int

Name

Gets the database name.

string Name { get; }

Property Value

string

Remarks

This is the name of the database, extracted from the database connection string.

Events

UnitRetrieved

Occurs when a unit is retrieved from the database.

event EventHandler<UnitRetrievedEventArgs>? UnitRetrieved

Event Type

EventHandler<UnitRetrievedEventArgs>

Remarks

Line plug-ins that add an event handler must also implement IDisposable and remove the event handler when being disposed. Otherwise, any time the line is reconfigured, new event handlers will be added on top of the existing ones.