DotNetBrightener.Plugins.EventPubSub.DependencyInjection 2025.0.3

dotnet add package DotNetBrightener.Plugins.EventPubSub.DependencyInjection --version 2025.0.3                
NuGet\Install-Package DotNetBrightener.Plugins.EventPubSub.DependencyInjection -Version 2025.0.3                
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="2025.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotNetBrightener.Plugins.EventPubSub.DependencyInjection --version 2025.0.3                
#r "nuget: DotNetBrightener.Plugins.EventPubSub.DependencyInjection, 2025.0.3"                
#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=2025.0.3

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

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 net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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
2025.0.3 105 2/10/2025
2025.0.3-preview-288 95 2/10/2025
2025.0.2 105 1/21/2025
2025.0.2-preview-278 77 1/21/2025
2025.0.2-preview-277 95 12/16/2024
2025.0.1-rc-243301701 299 11/25/2024
2024.0.14.6 123 11/25/2024
2024.0.14.6-rc-243031001 169 10/29/2024
2024.0.14.6-rc-243030701 102 10/29/2024
2024.0.14.6-rc-242840501 102 10/10/2024
2024.0.14.6-rc-242820305 94 10/8/2024
2024.0.14.6-rc-242771401 230 10/3/2024
2024.0.14.6-rc-242770501 97 10/3/2024
2024.0.14.6-rc-242770201 115 10/3/2024
2024.0.14.6-rc-242761801 101 10/2/2024
2024.0.14.6-rc-242761601 109 10/2/2024
2024.0.14.6-rc-242761501 98 10/2/2024
2024.0.14.6-rc-242761401 105 10/2/2024
2024.0.14.6-rc-242760701 123 10/2/2024
2024.0.14.6-rc-242751002 109 10/1/2024
2024.0.14.6-rc-242750901 107 10/1/2024
2024.0.14.6-rc-242750502 108 10/1/2024
2024.0.14.6-rc-242750201 109 10/1/2024
2024.0.14.6-rc-242741501 93 9/30/2024
2024.0.14.6-rc-242730701 119 9/29/2024
2024.0.14.6-preview-2730501 97 9/29/2024
2024.0.14.6-preview-2701501 129 9/26/2024
2024.0.14.6-preview-2620901 141 9/18/2024
2024.0.14.6-preview-2570701 118 9/13/2024
2024.0.14.6-preview-2510703 186 9/7/2024
2024.0.14.6-preview-2480501 139 9/4/2024
2024.0.14.6-preview-2430401 155 8/30/2024
2024.0.14.6-preview-242730701 103 9/29/2024
2024.0.14.6-preview-2421703 121 8/29/2024
2024.0.14.6-preview-2421701 105 8/29/2024
2024.0.14.6-preview-2420901 112 8/29/2024
2024.0.14.6-preview-2390101 126 8/26/2024
2024.0.14.6-preview-2381603 127 8/25/2024
2024.0.14.6-preview-2341601 151 8/21/2024
2024.0.14.6-preview-2321602 145 8/20/2024
2024.0.14.6-preview-2190801 148 8/6/2024
2024.0.14.6-preview-2041501 109 7/22/2024
2024.0.14.6-preview-1920603 173 7/10/2024
2024.0.14.6-preview-1920301 125 7/10/2024
2024.0.14.6-preview-1911302 134 7/9/2024
2024.0.14.6-preview-1901001 131 7/8/2024
2024.0.14.6-preview-1900901 127 7/8/2024
2024.0.14.6-preview-1900801 113 7/8/2024
2024.0.14.6-preview-1860304 122 7/4/2024
2024.0.14.5 182 7/1/2024
2024.0.14.5-preview-1811601 118 6/29/2024
2024.0.14.5-preview-1810501 139 6/29/2024
2024.0.14.5-preview-180132 135 6/28/2024
2024.0.14.5-preview-180131 125 6/28/2024
2024.0.14.5-preview-180121 115 6/28/2024
2024.0.14.4 143 6/27/2024
2024.0.14.4-preview-7 119 6/27/2024
2024.0.14.3 131 6/21/2024
2024.0.14.1 130 6/6/2024
2024.0.14.1-preview 124 6/6/2024
2024.0.14-preview-1 114 6/6/2024
2024.0.13.8-preview 124 6/6/2024
2024.0.13.1-preview-0146 124 6/6/2024
2024.0.12.15803-preview-03 119 6/6/2024
2024.0.12.15608 135 6/4/2024
2024.0.12.15515 217 6/3/2024
2024.0.12.15220 134 5/31/2024
2024.0.12.15220-alpha31-240... 114 5/31/2024
2024.0.12.14911 164 5/28/2024
2024.0.12.14910-alpha28-240... 124 5/28/2024
2024.0.12.14823 143 5/27/2024
2024.0.12.14522-alpha7-2405... 117 5/24/2024
2024.0.12.14514-alpha6-2405... 126 5/24/2024
2024.0.12.14511 150 5/24/2024
2024.0.12.14314 174 5/22/2024
2024.0.12.14114 164 5/20/2024
2024.0.12.12815 183 5/7/2024
2024.0.12.12814 152 5/7/2024
2024.0.12.12721 151 5/6/2024
2024.0.12.12702 142 5/5/2024
2024.0.12.12622 145 5/5/2024
2024.0.12.12514 127 5/4/2024
2024.0.12.12512 143 5/4/2024
2024.0.12.12510 133 5/4/2024
2024.0.12.12420 119 5/3/2024
2024.0.12.12319 88 5/2/2024
2024.0.12.12319-rc-2405021801 71 5/2/2024
2024.0.12.12318 84 5/2/2024
2024.0.12.12215 126 5/1/2024
2024.0.12.12011 143 4/29/2024
2024.0.12.11720 132 4/26/2024
2024.0.12.11719 137 4/26/2024
2024.0.12.11621 140 4/25/2024
2024.0.12.11523 122 4/24/2024
2024.0.12.11522 123 4/24/2024
2024.0.12.11417 158 4/23/2024
2024.0.12.11400 147 4/22/2024
2024.0.12.11316 142 4/22/2024
2024.0.11.10220 123 4/11/2024
2024.0.11.10120 122 4/10/2024
2024.0.11.10119 114 4/10/2024
2024.0.11.10115 115 4/10/2024
2024.0.11.9914 149 4/8/2024
2024.0.11.9901 127 4/7/2024
2024.0.11.9823 132 4/7/2024
2024.0.11.9401 127 4/2/2024
2024.0.11.9301 137 4/1/2024
2024.0.11.9206 127 3/31/2024
2024.0.11.9205 124 3/31/2024
2024.0.11.8200 146 3/21/2024
2024.0.11.8122 116 3/21/2024
2024.0.11.8120 122 3/21/2024
2024.0.11.7320 183 3/13/2024
2024.0.11.7316 152 3/13/2024
2024.0.11.7310 131 3/13/2024
2024.0.11 129 3/13/2024
2024.0.10 162 3/3/2024
2024.0.9 149 2/27/2024
2024.0.8 185 2/1/2024
2024.0.7 140 1/26/2024
2024.0.6 133 1/25/2024
2024.0.5 121 1/24/2024
2024.0.4 118 1/24/2024
2024.0.3 142 1/22/2024
2024.0.2 190 1/10/2024
2024.0.1 137 1/9/2024
2024.0.1-alpha-3 132 1/9/2024
2024.0.1-alpha-2 108 1/9/2024
2024.0.1-alpha-1 140 1/3/2024
2024.0.0 185 12/26/2023
2023.0.27 184 12/21/2023
2023.0.26 132 12/21/2023
2023.0.25 162 12/11/2023
2023.0.24 144 12/8/2023
2023.0.23 140 12/6/2023
2023.0.21 174 12/4/2023
2023.0.20 187 11/27/2023
2023.0.19 149 11/20/2023
2023.0.18 171 10/25/2023
2023.0.17 213 10/22/2023
2023.0.16 221 10/16/2023
2023.0.16-alpha-1 110 10/16/2023
2023.0.15 176 10/14/2023
2023.0.14 142 10/14/2023
2023.0.13 140 10/14/2023
2023.0.12 138 10/14/2023
2023.0.11 132 10/10/2023
2023.0.10 148 10/9/2023
2023.0.9 231 8/16/2023
2023.0.8 164 8/15/2023
2023.0.8-alpha-2 242 5/31/2023
2023.0.7 176 5/12/2023
2023.0.6 243 5/10/2023
2023.0.5 155 5/7/2023
2023.0.4 188 4/22/2023
2023.0.3 222 4/19/2023
2023.0.2 220 4/6/2023
2023.0.1 246 3/13/2023
2022.11.0 346 11/21/2022
2022.10.0 404 10/15/2022
2022.9.0 381 9/5/2022