DotNetBrightener.Plugins.EventPubSub.DependencyInjection 2024.0.14.6

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.14.6                
NuGet\Install-Package DotNetBrightener.Plugins.EventPubSub.DependencyInjection -Version 2024.0.14.6                
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.14.6" />                
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.14.6                
#r "nuget: DotNetBrightener.Plugins.EventPubSub.DependencyInjection, 2024.0.14.6"                
#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.14.6

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

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
2025.0.2-preview-277 80 12/16/2024
2025.0.1-rc-243301701 189 11/25/2024
2024.0.14.6 110 11/25/2024
2024.0.14.6-rc-243031001 161 10/29/2024
2024.0.14.6-rc-243030701 92 10/29/2024
2024.0.14.6-rc-242840501 94 10/10/2024
2024.0.14.6-rc-242820305 88 10/8/2024
2024.0.14.6-rc-242771401 224 10/3/2024
2024.0.14.6-rc-242770501 90 10/3/2024
2024.0.14.6-rc-242770201 99 10/3/2024
2024.0.14.6-rc-242761801 94 10/2/2024
2024.0.14.6-rc-242761601 105 10/2/2024
2024.0.14.6-rc-242761501 89 10/2/2024
2024.0.14.6-rc-242761401 101 10/2/2024
2024.0.14.6-rc-242760701 115 10/2/2024
2024.0.14.6-rc-242751002 103 10/1/2024
2024.0.14.6-rc-242750901 101 10/1/2024
2024.0.14.6-rc-242750502 104 10/1/2024
2024.0.14.6-rc-242750201 102 10/1/2024
2024.0.14.6-rc-242741501 87 9/30/2024
2024.0.14.6-rc-242730701 112 9/29/2024
2024.0.14.6-preview-2730501 91 9/29/2024
2024.0.14.6-preview-2701501 123 9/26/2024
2024.0.14.6-preview-2620901 135 9/18/2024
2024.0.14.6-preview-2570701 114 9/13/2024
2024.0.14.6-preview-2510703 182 9/7/2024
2024.0.14.6-preview-2480501 135 9/4/2024
2024.0.14.6-preview-2430401 151 8/30/2024
2024.0.14.6-preview-242730701 95 9/29/2024
2024.0.14.6-preview-2421703 119 8/29/2024
2024.0.14.6-preview-2421701 101 8/29/2024
2024.0.14.6-preview-2420901 108 8/29/2024
2024.0.14.6-preview-2390101 122 8/26/2024
2024.0.14.6-preview-2381603 123 8/25/2024
2024.0.14.6-preview-2341601 147 8/21/2024
2024.0.14.6-preview-2321602 130 8/20/2024
2024.0.14.6-preview-2190801 146 8/6/2024
2024.0.14.6-preview-2041501 105 7/22/2024
2024.0.14.6-preview-1920603 166 7/10/2024
2024.0.14.6-preview-1920301 119 7/10/2024
2024.0.14.6-preview-1911302 128 7/9/2024
2024.0.14.6-preview-1901001 126 7/8/2024
2024.0.14.6-preview-1900901 121 7/8/2024
2024.0.14.6-preview-1900801 110 7/8/2024
2024.0.14.6-preview-1860304 117 7/4/2024
2024.0.14.5 177 7/1/2024
2024.0.14.5-preview-1811601 113 6/29/2024
2024.0.14.5-preview-1810501 134 6/29/2024
2024.0.14.5-preview-180132 132 6/28/2024
2024.0.14.5-preview-180131 120 6/28/2024
2024.0.14.5-preview-180121 110 6/28/2024
2024.0.14.4 140 6/27/2024
2024.0.14.4-preview-7 113 6/27/2024
2024.0.14.3 126 6/21/2024
2024.0.14.1 127 6/6/2024
2024.0.14.1-preview 121 6/6/2024
2024.0.14-preview-1 109 6/6/2024
2024.0.13.8-preview 117 6/6/2024
2024.0.13.1-preview-0146 119 6/6/2024
2024.0.12.15803-preview-03 116 6/6/2024
2024.0.12.15608 130 6/4/2024
2024.0.12.15515 212 6/3/2024
2024.0.12.15220 129 5/31/2024
2024.0.12.15220-alpha31-240... 109 5/31/2024
2024.0.12.14911 159 5/28/2024
2024.0.12.14910-alpha28-240... 121 5/28/2024
2024.0.12.14823 138 5/27/2024
2024.0.12.14522-alpha7-2405... 114 5/24/2024
2024.0.12.14514-alpha6-2405... 121 5/24/2024
2024.0.12.14511 145 5/24/2024
2024.0.12.14314 167 5/22/2024
2024.0.12.14114 156 5/20/2024
2024.0.12.12815 175 5/7/2024
2024.0.12.12814 144 5/7/2024
2024.0.12.12721 147 5/6/2024
2024.0.12.12702 138 5/5/2024
2024.0.12.12622 141 5/5/2024
2024.0.12.12514 116 5/4/2024
2024.0.12.12512 133 5/4/2024
2024.0.12.12510 124 5/4/2024
2024.0.12.12420 113 5/3/2024
2024.0.12.12319 82 5/2/2024
2024.0.12.12319-rc-2405021801 65 5/2/2024
2024.0.12.12318 78 5/2/2024
2024.0.12.12215 122 5/1/2024
2024.0.12.12011 133 4/29/2024
2024.0.12.11720 126 4/26/2024
2024.0.12.11719 131 4/26/2024
2024.0.12.11621 134 4/25/2024
2024.0.12.11523 116 4/24/2024
2024.0.12.11522 119 4/24/2024
2024.0.12.11417 152 4/23/2024
2024.0.12.11400 135 4/22/2024
2024.0.12.11316 136 4/22/2024
2024.0.11.10220 117 4/11/2024
2024.0.11.10120 117 4/10/2024
2024.0.11.10119 108 4/10/2024
2024.0.11.10115 109 4/10/2024
2024.0.11.9914 143 4/8/2024
2024.0.11.9901 121 4/7/2024
2024.0.11.9823 126 4/7/2024
2024.0.11.9401 124 4/2/2024
2024.0.11.9301 132 4/1/2024
2024.0.11.9206 124 3/31/2024
2024.0.11.9205 118 3/31/2024
2024.0.11.8200 143 3/21/2024
2024.0.11.8122 113 3/21/2024
2024.0.11.8120 119 3/21/2024
2024.0.11.7320 180 3/13/2024
2024.0.11.7316 149 3/13/2024
2024.0.11.7310 128 3/13/2024
2024.0.11 126 3/13/2024
2024.0.10 159 3/3/2024
2024.0.9 144 2/27/2024
2024.0.8 182 2/1/2024
2024.0.7 137 1/26/2024
2024.0.6 130 1/25/2024
2024.0.5 118 1/24/2024
2024.0.4 115 1/24/2024
2024.0.3 139 1/22/2024
2024.0.2 187 1/10/2024
2024.0.1 134 1/9/2024
2024.0.1-alpha-3 129 1/9/2024
2024.0.1-alpha-2 105 1/9/2024
2024.0.1-alpha-1 135 1/3/2024
2024.0.0 181 12/26/2023
2023.0.27 181 12/21/2023
2023.0.26 129 12/21/2023
2023.0.25 159 12/11/2023
2023.0.24 141 12/8/2023
2023.0.23 137 12/6/2023
2023.0.21 171 12/4/2023
2023.0.20 182 11/27/2023
2023.0.19 146 11/20/2023
2023.0.18 168 10/25/2023
2023.0.17 210 10/22/2023
2023.0.16 217 10/16/2023
2023.0.16-alpha-1 107 10/16/2023
2023.0.15 173 10/14/2023
2023.0.14 139 10/14/2023
2023.0.13 137 10/14/2023
2023.0.12 135 10/14/2023
2023.0.11 129 10/10/2023
2023.0.10 145 10/9/2023
2023.0.9 227 8/16/2023
2023.0.8 161 8/15/2023
2023.0.8-alpha-2 236 5/31/2023
2023.0.7 169 5/12/2023
2023.0.6 198 5/10/2023
2023.0.5 148 5/7/2023
2023.0.4 181 4/22/2023
2023.0.3 214 4/19/2023
2023.0.2 213 4/6/2023
2023.0.1 233 3/13/2023
2022.11.0 336 11/21/2022
2022.10.0 394 10/15/2022
2022.9.0 366 9/5/2022