Table of Contents

Class EventBridge.UserDisconnectEvent

Namespace
RisingV.Shared
Assembly
RisingV.Shared.dll

Event triggered when a user disconnects from the server.

public record EventBridge.UserDisconnectEvent : Event<EventBridge.UserDisconnectEvent>, IEvent, IEquatable<Event>, IEquatable<Event<EventBridge.UserDisconnectEvent>>, IEquatable<EventBridge.UserDisconnectEvent>
Inheritance
EventBridge.UserDisconnectEvent
Implements
Inherited Members
Extension Methods

Constructors

UserDisconnectEvent(ServerClient, NetConnectionId, ConnectionStatusChangeReason, string)

Event triggered when a user disconnects from the server.

public UserDisconnectEvent(ServerBootstrapSystem.ServerClient ServerClient, NetConnectionId NetConnectionId, ConnectionStatusChangeReason ConnectionStatusReason, string ExtraData)

Parameters

ServerClient ServerBootstrapSystem.ServerClient

The server client representing the user connection.

NetConnectionId NetConnectionId

The network connection ID of the user.

ConnectionStatusReason ConnectionStatusChangeReason

The reason for the connection status change.

ExtraData string

Optional extra data related to the disconnection.

Properties

ConnectionStatusReason

The reason for the connection status change.

public ConnectionStatusChangeReason ConnectionStatusReason { get; init; }

Property Value

ConnectionStatusChangeReason

ExtraData

Optional extra data related to the disconnection.

public string ExtraData { get; init; }

Property Value

string

NetConnectionId

The network connection ID of the user.

public NetConnectionId NetConnectionId { get; init; }

Property Value

NetConnectionId

ServerClient

The server client representing the user connection.

public ServerBootstrapSystem.ServerClient ServerClient { get; init; }

Property Value

ServerBootstrapSystem.ServerClient