Show / Hide Table of Contents

Struct ServerSentEventsClientConnectedArgs

Provides data for the ClientConnected event.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
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
Microsoft.AspNetCore.Http.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
Microsoft.AspNetCore.Http.HttpRequest request

The request which has been made in order to establish the connection.

IServerSentEventsClient client

The client who has connected.

System.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
System.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
Microsoft.AspNetCore.Http.HttpRequest
Back to top Copyright © 2017 - 2023 Tomasz Pęczek