Show / Hide Table of Contents

Class OptionsExtensions

The ServerSentEventsServiceOptions<TServerSentEventsService> options related extensions.

Inheritance
object
OptionsExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Lib.AspNetCore.ServerSentEvents
Assembly: Lib.AspNetCore.ServerSentEvents.dll
Syntax
public static class OptionsExtensions

Methods

ToBaseServerSentEventsServiceOptions<TServerSentEventsService>(IOptions<ServerSentEventsServiceOptions<TServerSentEventsService>>)

Converts an instace of ServerSentEventsServiceOptions<TServerSentEventsService> to ServerSentEventsServiceOptions<TServerSentEventsService>.

Declaration
public static IOptions<ServerSentEventsServiceOptions<ServerSentEventsService>> ToBaseServerSentEventsServiceOptions<TServerSentEventsService>(this IOptions<ServerSentEventsServiceOptions<TServerSentEventsService>> options) where TServerSentEventsService : ServerSentEventsService
Parameters
Type Name Description
IOptions<ServerSentEventsServiceOptions<TServerSentEventsService>> options

The options instance.

Returns
Type Description
IOptions<ServerSentEventsServiceOptions<ServerSentEventsService>>

The option instance

Type Parameters
Name Description
TServerSentEventsService

The type of ServerSentEventsService for the options instance.

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