Class NotificationRegistration
- Namespace
- Quilt4Net.Toolkit
- Assembly
- Quilt4Net.Toolkit.dll
Registration for the Quilt4Net notification client.
public static class NotificationRegistration
- Inheritance
-
NotificationRegistration
- Inherited Members
Methods
AddQuilt4NetNotifications(IServiceCollection, IConfiguration, Action<NotificationOptions>)
Registers INotificationClient, which sends notifications to Quilt4Net.
public static void AddQuilt4NetNotifications(this IServiceCollection services, IConfiguration configuration, Action<NotificationOptions> options = null)
Parameters
servicesIServiceCollectionThe service collection.
configurationIConfigurationConfiguration to bind
Quilt4Net:Notificationfrom.optionsAction<NotificationOptions>Optional overrides applied after configuration is bound.
Exceptions
- InvalidOperationException
The configured address is not an absolute URI.
AddQuilt4NetNotifications(IHostApplicationBuilder, Action<NotificationOptions>)
Registers INotificationClient, which sends notifications to Quilt4Net.
public static void AddQuilt4NetNotifications(this IHostApplicationBuilder builder, Action<NotificationOptions> options = null)
Parameters
builderIHostApplicationBuilderThe host application builder.
optionsAction<NotificationOptions>Optional overrides applied after configuration is bound.