Show / Hide Table of Contents

Class OptionsExtensions

The ServerSentEventsServiceOptions<TServerSentEventsService> options related extensions.

Inheritance
System.Object
OptionsExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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
Microsoft.Extensions.Options.IOptions<ServerSentEventsServiceOptions<TServerSentEventsService>> options

The options instance.

Returns
Type Description
Microsoft.Extensions.Options.IOptions<ServerSentEventsServiceOptions<ServerSentEventsService>>

The option instance

Type Parameters
Name Description
TServerSentEventsService

The type of ServerSentEventsService for the options instance.

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