From faff6daa2397edad96c11fe44b65918416b150f6 Mon Sep 17 00:00:00 2001
From: pomianowski <13592821+pomianowski@users.noreply.github.com>
Date: Fri, 31 May 2024 11:31:37 +0200
Subject: [PATCH] Update interfaces
---
.gitignore | 3 +
Directory.Build.props | 2 +-
.../AutofacConsumerProvider.cs | 2 +-
.../ContainerBuilderExtensions.cs | 3 +-
.../EventBusInstaller.cs | 2 +-
.../WindsorConsumerProvider.cs | 2 +-
.../WindsorEventBusBuilder.cs | 4 +-
src/ReflectionEventing.Demo.Wpf/App.xaml.cs | 5 +-
.../AssemblyInfo.cs | 9 +-
.../GlobalUsings.cs | 3 +
.../MainWindow.xaml | 13 ++-
.../Services/ApplicationHostService.cs | 4 +-
.../Services/BackgroundTickService.cs | 9 +-
.../ViewModels/MainWindowViewModel.cs | 20 +++--
.../ViewModels/ViewModel.cs | 31 +++++++
.../DependencyInjectionConsumerProvider.cs | 2 +-
.../DependencyInjectionEventBusBuilder.cs | 4 +-
.../ServiceCollectionExtensions.cs | 4 +-
.../EventBusModule.cs | 10 ++-
.../NinjectConsumerProvider.cs | 2 +-
.../NinjectEventBusBuilder.cs | 4 +-
.../UnityConsumerProvider.cs | 2 +-
.../UnityContainerExtensions.cs | 6 +-
src/ReflectionEventing/EventBus.cs | 38 +++-----
src/ReflectionEventing/EventBusBuilder.cs | 41 ++++++---
.../EventBusBuilderExtensions.cs | 36 +++++---
.../EventBusBuilderOptions.cs | 21 +++++
src/ReflectionEventing/EventBusExtensions.cs | 40 +++++++++
src/ReflectionEventing/GlobalUsings.cs | 2 +
.../HashedConsumerTypesProvider.cs | 25 ++----
.../HashedPolymorphicConsumerTypesProvider.cs | 61 +++++++++++++
src/ReflectionEventing/IConsumerProvider.cs | 8 +-
.../IConsumerTypesProvider.cs | 2 +-
src/ReflectionEventing/IEventBus.cs | 11 +--
.../AutofacConsumerProviderTests.cs | 6 +-
...ependencyInjectionConsumerProviderTests.cs | 6 +-
...DependencyInjectionEventBusBuilderTests.cs | 19 ++--
.../EventBusBuilderTests.cs | 90 ++++++++++++++++---
.../EventBusTests.cs | 6 +-
.../HashedConsumerTypesProviderTests.cs | 34 ++++---
40 files changed, 414 insertions(+), 178 deletions(-)
create mode 100644 src/ReflectionEventing.Demo.Wpf/ViewModels/ViewModel.cs
create mode 100644 src/ReflectionEventing/EventBusBuilderOptions.cs
create mode 100644 src/ReflectionEventing/EventBusExtensions.cs
create mode 100644 src/ReflectionEventing/HashedPolymorphicConsumerTypesProvider.cs
diff --git a/.gitignore b/.gitignore
index 8a30d25..42bc5d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,9 @@
*.userosscache
*.sln.docstates
+# Rider
+.idea
+
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
diff --git a/Directory.Build.props b/Directory.Build.props
index 60adef7..5f07ef1 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -6,7 +6,7 @@
- 2.2.0
+ 3.0.0
diff --git a/src/ReflectionEventing.Autofac/AutofacConsumerProvider.cs b/src/ReflectionEventing.Autofac/AutofacConsumerProvider.cs
index 72e89a9..c416972 100644
--- a/src/ReflectionEventing.Autofac/AutofacConsumerProvider.cs
+++ b/src/ReflectionEventing.Autofac/AutofacConsumerProvider.cs
@@ -13,7 +13,7 @@ namespace ReflectionEventing.Autofac;
public class AutofacConsumerProvider(ILifetimeScope lifetimeScope) : IConsumerProvider
{
///
- public IEnumerable