Struct ServerSentEventsClientConnectedArgs
Provides data for the ClientConnected event.
Inherited Members
Namespace: Lib.AspNetCore.ServerSentEvents
Assembly: Lib.AspNetCore.ServerSentEvents.dll
Syntax
public struct ServerSentEventsClientConnectedArgs
Constructors
ServerSentEventsClientConnectedArgs(HttpRequest, IServerSentEventsClient)
Initializes new instance of data.
Declaration
public ServerSentEventsClientConnectedArgs(HttpRequest request, IServerSentEventsClient client)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpRequest | request | The request which has been made in order to establish the connection. |
| IServerSentEventsClient | client | The client who has connected. |
ServerSentEventsClientConnectedArgs(HttpRequest, IServerSentEventsClient, string)
Initializes new instance of data.
Declaration
public ServerSentEventsClientConnectedArgs(HttpRequest request, IServerSentEventsClient client, string lastEventId)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpRequest | request | The request which has been made in order to establish the connection. |
| IServerSentEventsClient | client | The client who has connected. |
| string | lastEventId | The identifier of last event which client has received. |
Properties
Client
Gets the client who has connected.
Declaration
public readonly IServerSentEventsClient Client { get; }
Property Value
| Type | Description |
|---|---|
| IServerSentEventsClient |
LastEventId
Gets the identifier of last event which client has received (available if client has reconnected).
Declaration
public readonly string LastEventId { get; }
Property Value
| Type | Description |
|---|---|
| string |
Request
Gets the request which has been made in order to establish the connection.
Declaration
public readonly HttpRequest Request { get; }
Property Value
| Type | Description |
|---|---|
| HttpRequest |