Class OptionsExtensions
The ServerSentEventsServiceOptions<TServerSentEventsService> options related extensions.
Inherited Members
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. |