DotNetBrightener.Plugins.EventPubSub.DependencyInjection 2024.0.12.12318

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package DotNetBrightener.Plugins.EventPubSub.DependencyInjection --version 2024.0.12.12318
NuGet\Install-Package DotNetBrightener.Plugins.EventPubSub.DependencyInjection -Version 2024.0.12.12318
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DotNetBrightener.Plugins.EventPubSub.DependencyInjection" Version="2024.0.12.12318" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotNetBrightener.Plugins.EventPubSub.DependencyInjection --version 2024.0.12.12318
#r "nuget: DotNetBrightener.Plugins.EventPubSub.DependencyInjection, 2024.0.12.12318"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DotNetBrightener.Plugins.EventPubSub.DependencyInjection as a Cake Addin
#addin nuget:?package=DotNetBrightener.Plugins.EventPubSub.DependencyInjection&version=2024.0.12.12318

// Install DotNetBrightener.Plugins.EventPubSub.DependencyInjection as a Cake Tool
#tool nuget:?package=DotNetBrightener.Plugins.EventPubSub.DependencyInjection&version=2024.0.12.12318

Extensions for ASP.NET Core of Event Publish/Subscribe Library

© 2024 DotNet Brightener

NuGet Version

Usage

Register at startup
// register the core Event Pub/Sub service
services.AddEventPubSubService();

// other service registrations

Then register the implementation of IEventHandler by calling

services.AddEventHandler<YourEventModelEventHandler>();

If you want to automatically let the application detect and register all the implementations of IEventHandler, put the following at the end of your ConfigureServices method in Startup.cs if you use Startup.cs file, or before the application run if you use Program.cs file.


// before starting the applications

// load all assemblies that are loaded into the application domain
var applicationAssemblies = AppDomain.CurrentDomain.GetAssemblies();

// Register the implementations of IEventHandler from the above assemblies
services.AddEventHandlersFromAssemblies(applicationAssemblies);

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on DotNetBrightener.Plugins.EventPubSub.DependencyInjection:

Package Downloads
DotNetBrightener.WebApp.CommonShared

Package Description

DotNetBrightener.Core.BackgroundTasks.DependencyInjection

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2024.0.12.12319-rc-2405021801 0 5/2/2024
2024.0.12.12318 0 5/2/2024
2024.0.12.12215 49 5/1/2024
2024.0.12.12011 53 4/29/2024
2024.0.12.11720 67 4/26/2024
2024.0.12.11719 62 4/26/2024
2024.0.12.11621 71 4/25/2024
2024.0.12.11523 83 4/24/2024
2024.0.12.11522 83 4/24/2024
2024.0.12.11417 102 4/23/2024
2024.0.12.11400 91 4/22/2024
2024.0.12.11316 89 4/22/2024
2024.0.11.10220 80 4/11/2024
2024.0.11.10120 80 4/10/2024
2024.0.11.10119 73 4/10/2024
2024.0.11.10115 73 4/10/2024
2024.0.11.9914 95 4/8/2024
2024.0.11.9901 84 4/7/2024
2024.0.11.9823 90 4/7/2024
2024.0.11.9401 98 4/2/2024
2024.0.11.9301 77 4/1/2024
2024.0.11.9206 81 3/31/2024
2024.0.11.9205 85 3/31/2024
2024.0.11.8200 102 3/21/2024
2024.0.11.8122 76 3/21/2024
2024.0.11.8120 86 3/21/2024
2024.0.11.7320 139 3/13/2024
2024.0.11.7316 105 3/13/2024
2024.0.11.7310 86 3/13/2024
2024.0.11 86 3/13/2024
2024.0.10 114 3/3/2024
2024.0.9 109 2/27/2024
2024.0.8 142 2/1/2024
2024.0.7 98 1/26/2024
2024.0.6 95 1/25/2024
2024.0.5 85 1/24/2024
2024.0.4 80 1/24/2024
2024.0.3 100 1/22/2024
2024.0.2 151 1/10/2024
2024.0.1 96 1/9/2024
2024.0.1-alpha-3 88 1/9/2024
2024.0.1-alpha-2 57 1/9/2024
2024.0.1-alpha-1 92 1/3/2024
2024.0.0 143 12/26/2023
2023.0.27 143 12/21/2023
2023.0.26 95 12/21/2023
2023.0.25 125 12/11/2023
2023.0.24 109 12/8/2023
2023.0.23 103 12/6/2023
2023.0.21 130 12/4/2023
2023.0.20 145 11/27/2023
2023.0.19 112 11/20/2023
2023.0.18 131 10/25/2023
2023.0.17 180 10/22/2023
2023.0.16 179 10/16/2023
2023.0.16-alpha-1 76 10/16/2023
2023.0.15 133 10/14/2023
2023.0.14 105 10/14/2023
2023.0.13 98 10/14/2023
2023.0.12 99 10/14/2023
2023.0.11 94 10/10/2023
2023.0.10 108 10/9/2023
2023.0.9 164 8/16/2023
2023.0.8 127 8/15/2023
2023.0.8-alpha-2 204 5/31/2023
2023.0.7 130 5/12/2023
2023.0.6 156 5/10/2023
2023.0.5 114 5/7/2023
2023.0.4 144 4/22/2023
2023.0.3 179 4/19/2023
2023.0.2 177 4/6/2023
2023.0.1 195 3/13/2023
2022.11.0 307 11/21/2022
2022.10.0 372 10/15/2022
2022.9.0 335 9/5/2022