Table of Contents

Class DatabaseConnectedEvent

Namespace
CL.MySQL2.Events
Assembly
CL.MySQL2.dll

Published when a MySQL connection is successfully opened.

public record DatabaseConnectedEvent : IEvent, IEquatable<DatabaseConnectedEvent>
Inheritance
DatabaseConnectedEvent
Implements
IEvent
Inherited Members

Constructors

DatabaseConnectedEvent(string, string, int, string, DateTime)

Published when a MySQL connection is successfully opened.

public DatabaseConnectedEvent(string ConnectionId, string Host, int Port, string Database, DateTime ConnectedAt)

Parameters

ConnectionId string
Host string
Port int
Database string
ConnectedAt DateTime

Properties

ConnectedAt

public DateTime ConnectedAt { get; init; }

Property Value

DateTime

ConnectionId

public string ConnectionId { get; init; }

Property Value

string

Database

public string Database { get; init; }

Property Value

string

Host

public string Host { get; init; }

Property Value

string

Port

public int Port { get; init; }

Property Value

int