DotNetBrightener.Plugins.EventPubSub.DependencyInjection 2024.0.12.11523

There is a newer version of this package available.
See the version list below for details.
dotnet add package DotNetBrightener.Plugins.EventPubSub.DependencyInjection --version 2024.0.12.11523                
NuGet\Install-Package DotNetBrightener.Plugins.EventPubSub.DependencyInjection -Version 2024.0.12.11523                
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.11523" />                
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.11523                
#r "nuget: DotNetBrightener.Plugins.EventPubSub.DependencyInjection, 2024.0.12.11523"                
#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.11523

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

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

© 2024 DotNet Brightener

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.14.6-preview-2701501 53 9/26/2024
2024.0.14.6-preview-2620901 101 9/18/2024
2024.0.14.6-preview-2570701 73 9/13/2024
2024.0.14.6-preview-2510703 153 9/7/2024
2024.0.14.6-preview-2480501 92 9/4/2024
2024.0.14.6-preview-2430401 122 8/30/2024
2024.0.14.6-preview-2421703 89 8/29/2024
2024.0.14.6-preview-2421701 81 8/29/2024
2024.0.14.6-preview-2420901 71 8/29/2024
2024.0.14.6-preview-2390101 97 8/26/2024
2024.0.14.6-preview-2381603 103 8/25/2024
2024.0.14.6-preview-2341601 131 8/21/2024
2024.0.14.6-preview-2321602 116 8/20/2024
2024.0.14.6-preview-2190801 125 8/6/2024
2024.0.14.6-preview-2041501 87 7/22/2024
2024.0.14.6-preview-1920603 150 7/10/2024
2024.0.14.6-preview-1920301 88 7/10/2024
2024.0.14.6-preview-1911302 105 7/9/2024
2024.0.14.6-preview-1901001 97 7/8/2024
2024.0.14.6-preview-1900901 105 7/8/2024
2024.0.14.6-preview-1900801 84 7/8/2024
2024.0.14.6-preview-1860304 86 7/4/2024
2024.0.14.5 149 7/1/2024
2024.0.14.5-preview-1811601 90 6/29/2024
2024.0.14.5-preview-1810501 117 6/29/2024
2024.0.14.5-preview-180132 100 6/28/2024
2024.0.14.5-preview-180131 95 6/28/2024
2024.0.14.5-preview-180121 96 6/28/2024
2024.0.14.4 103 6/27/2024
2024.0.14.4-preview-7 86 6/27/2024
2024.0.14.3 97 6/21/2024
2024.0.14.1 102 6/6/2024
2024.0.14.1-preview 99 6/6/2024
2024.0.14-preview-1 97 6/6/2024
2024.0.13.8-preview 105 6/6/2024
2024.0.13.1-preview-0146 101 6/6/2024
2024.0.12.15803-preview-03 91 6/6/2024
2024.0.12.15608 103 6/4/2024
2024.0.12.15515 183 6/3/2024
2024.0.12.15220 108 5/31/2024
2024.0.12.15220-alpha31-240... 83 5/31/2024
2024.0.12.14911 142 5/28/2024
2024.0.12.14910-alpha28-240... 91 5/28/2024
2024.0.12.14823 112 5/27/2024
2024.0.12.14522-alpha7-2405... 95 5/24/2024
2024.0.12.14514-alpha6-2405... 106 5/24/2024
2024.0.12.14511 126 5/24/2024
2024.0.12.14314 146 5/22/2024
2024.0.12.14114 133 5/20/2024
2024.0.12.12815 148 5/7/2024
2024.0.12.12814 113 5/7/2024
2024.0.12.12721 126 5/6/2024
2024.0.12.12702 115 5/5/2024
2024.0.12.12622 118 5/5/2024
2024.0.12.12514 96 5/4/2024
2024.0.12.12512 112 5/4/2024
2024.0.12.12510 109 5/4/2024
2024.0.12.12420 83 5/3/2024
2024.0.12.12319 61 5/2/2024
2024.0.12.12319-rc-2405021801 49 5/2/2024
2024.0.12.12318 61 5/2/2024
2024.0.12.12215 100 5/1/2024
2024.0.12.12011 95 4/29/2024
2024.0.12.11720 106 4/26/2024
2024.0.12.11719 112 4/26/2024
2024.0.12.11621 111 4/25/2024
2024.0.12.11523 100 4/24/2024
2024.0.12.11522 100 4/24/2024
2024.0.12.11417 116 4/23/2024
2024.0.12.11400 106 4/22/2024
2024.0.12.11316 106 4/22/2024
2024.0.11.10220 100 4/11/2024
2024.0.11.10120 99 4/10/2024
2024.0.11.10119 85 4/10/2024
2024.0.11.10115 85 4/10/2024
2024.0.11.9914 118 4/8/2024
2024.0.11.9901 106 4/7/2024
2024.0.11.9823 103 4/7/2024
2024.0.11.9401 111 4/2/2024
2024.0.11.9301 106 4/1/2024
2024.0.11.9206 99 3/31/2024
2024.0.11.9205 95 3/31/2024
2024.0.11.8200 116 3/21/2024
2024.0.11.8122 88 3/21/2024
2024.0.11.8120 99 3/21/2024
2024.0.11.7320 164 3/13/2024
2024.0.11.7316 118 3/13/2024
2024.0.11.7310 106 3/13/2024
2024.0.11 100 3/13/2024
2024.0.10 127 3/3/2024
2024.0.9 119 2/27/2024
2024.0.8 168 2/1/2024
2024.0.7 111 1/26/2024
2024.0.6 108 1/25/2024
2024.0.5 96 1/24/2024
2024.0.4 99 1/24/2024
2024.0.3 124 1/22/2024
2024.0.2 171 1/10/2024
2024.0.1 107 1/9/2024
2024.0.1-alpha-3 101 1/9/2024
2024.0.1-alpha-2 83 1/9/2024
2024.0.1-alpha-1 112 1/3/2024
2024.0.0 155 12/26/2023
2023.0.27 166 12/21/2023
2023.0.26 111 12/21/2023
2023.0.25 144 12/11/2023
2023.0.24 117 12/8/2023
2023.0.23 121 12/6/2023
2023.0.21 154 12/4/2023
2023.0.20 167 11/27/2023
2023.0.19 129 11/20/2023
2023.0.18 151 10/25/2023
2023.0.17 199 10/22/2023
2023.0.16 198 10/16/2023
2023.0.16-alpha-1 93 10/16/2023
2023.0.15 144 10/14/2023
2023.0.14 125 10/14/2023
2023.0.13 120 10/14/2023
2023.0.12 119 10/14/2023
2023.0.11 113 10/10/2023
2023.0.10 128 10/9/2023
2023.0.9 195 8/16/2023
2023.0.8 144 8/15/2023
2023.0.8-alpha-2 211 5/31/2023
2023.0.7 142 5/12/2023
2023.0.6 183 5/10/2023
2023.0.5 133 5/7/2023
2023.0.4 166 4/22/2023
2023.0.3 189 4/19/2023
2023.0.2 196 4/6/2023
2023.0.1 217 3/13/2023
2022.11.0 326 11/21/2022
2022.10.0 384 10/15/2022
2022.9.0 357 9/5/2022