Show / Hide Table of Contents

Interface IServerSentEventsClientIdProvider

Contract for provider of identifiers for IServerSentEventsClient instances based on Microsoft.AspNetCore.Http.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
Microsoft.AspNetCore.Http.HttpContext context

The context.

Returns
Type Description
System.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
System.Guid clientId

The identifier.

Microsoft.AspNetCore.Http.HttpContext context

The context.

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