Show / Hide Table of Contents

Interface IServerSentEventsClientIdProvider

Contract for provider of identifiers for IServerSentEventsClient instances based on HttpContext.

Namespace: Lib.AspNetCore.ServerSentEvents
Assembly: Lib.AspNetCore.ServerSentEvents.dll
Syntax
public interface IServerSentEventsClientIdProvider

Methods

AcquireClientId(HttpContext)

Acquires an identifier which will be used by IServerSentEventsClient.

Declaration
Guid AcquireClientId(HttpContext context)
Parameters
Type Name Description
HttpContext context

The context.

Returns
Type Description
Guid

The identifier.

ReleaseClientId(Guid, HttpContext)

Releases an identifier so it no longer represents any active IServerSentEventsClient.

Declaration
void ReleaseClientId(Guid clientId, HttpContext context)
Parameters
Type Name Description
Guid clientId

The identifier.

HttpContext context

The context.

Back to top Copyright © 2017 - 2025 Tomasz Pęczek