From 3fa9ea3cf11c397bf72aa0219f42fbd5642088fd Mon Sep 17 00:00:00 2001
From: Alexander <2088777+ajeckmans@users.noreply.github.com>
Date: Wed, 10 Apr 2024 10:39:21 +0200
Subject: [PATCH 01/21] Update Reqnroll.Verify.targets (#97)
---
.../build/Reqnroll.Verify.targets | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Plugins/Reqnroll.Verify/Reqnroll.Verify.ReqnrollPlugin/build/Reqnroll.Verify.targets b/Plugins/Reqnroll.Verify/Reqnroll.Verify.ReqnrollPlugin/build/Reqnroll.Verify.targets
index ebf38b7c2..dfa8e8105 100644
--- a/Plugins/Reqnroll.Verify/Reqnroll.Verify.ReqnrollPlugin/build/Reqnroll.Verify.targets
+++ b/Plugins/Reqnroll.Verify/Reqnroll.Verify.ReqnrollPlugin/build/Reqnroll.Verify.targets
@@ -1,9 +1,9 @@
- <_VerifyGeneratorPluginFramework Condition=" '$(MSBuildRuntimeType)' == 'Core'">netcoreapp2.1
+ <_VerifyGeneratorPluginFramework Condition=" '$(MSBuildRuntimeType)' == 'Core'">netcoreapp3.1
<_VerifyGeneratorPluginFramework Condition=" '$(MSBuildRuntimeType)' != 'Core'">net462
<_VerifyGeneratorPluginPath>$(MSBuildThisFileDirectory)$(_VerifyGeneratorPluginFramework)\Reqnroll.Verify.ReqnrollPlugin.dll
-
\ No newline at end of file
+
From 4f620a0a7ebf9e1a65cf536c22200c842fc3ff06 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1sp=C3=A1r=20Nagy?=
Date: Wed, 10 Apr 2024 13:37:18 +0200
Subject: [PATCH 02/21] Include BoDi to Reqnroll package (#91) (#95)
* Include BoDi to Reqnroll package (#91)
* Move BoDi code to Reqnroll project
* split & cleanup BoDi.cs
* Remove Reqnroll.BoDi project
---
Reqnroll.BoDi/BoDi.cs | 920 ------------------
Reqnroll.BoDi/Reqnroll.BoDi.csproj | 22 -
Reqnroll.sln | 16 +-
Reqnroll/BoDi/IContainedInstance.cs | 6 +
Reqnroll/BoDi/IObjectContainer.cs | 117 +++
Reqnroll/BoDi/IStrategyRegistration.cs | 15 +
Reqnroll/BoDi/ObjectContainer.cs | 730 ++++++++++++++
Reqnroll/BoDi/ObjectContainerException.cs | 27 +
Reqnroll/Reqnroll.csproj | 22 +-
Reqnroll/Reqnroll.nuspec | 5 +-
.../Reqnroll.SystemTests.csproj | 3 +-
Tests/Reqnroll.SystemTests/SystemTestBase.cs | 46 +-
12 files changed, 938 insertions(+), 991 deletions(-)
delete mode 100644 Reqnroll.BoDi/BoDi.cs
delete mode 100644 Reqnroll.BoDi/Reqnroll.BoDi.csproj
create mode 100644 Reqnroll/BoDi/IContainedInstance.cs
create mode 100644 Reqnroll/BoDi/IObjectContainer.cs
create mode 100644 Reqnroll/BoDi/IStrategyRegistration.cs
create mode 100644 Reqnroll/BoDi/ObjectContainer.cs
create mode 100644 Reqnroll/BoDi/ObjectContainerException.cs
diff --git a/Reqnroll.BoDi/BoDi.cs b/Reqnroll.BoDi/BoDi.cs
deleted file mode 100644
index ba657a233..000000000
--- a/Reqnroll.BoDi/BoDi.cs
+++ /dev/null
@@ -1,920 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Concurrent;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Linq;
-using System.Reflection;
-using System.Runtime.Serialization;
-using System.Threading;
-
-namespace Reqnroll.BoDi
-{
- [Serializable]
- public class ObjectContainerException : Exception
- {
- public ObjectContainerException(string message, Type[] resolutionPath) : base(GetMessage(message, resolutionPath))
- {
- }
-
- protected ObjectContainerException(
- SerializationInfo info,
- StreamingContext context) : base(info, context)
- {
- }
-
- static private string GetMessage(string message, Type[] resolutionPath)
- {
- if (resolutionPath == null || resolutionPath.Length == 0)
- return message;
-
- return string.Format("{0} (resolution path: {1})", message, string.Join("->", resolutionPath.Select(t => t.FullName).ToArray()));
- }
- }
-
- public interface IObjectContainer : IDisposable
- {
- ///
- /// Fired when a new object is created directly by the container. It is not invoked for resolving instance and factory registrations.
- ///
- event Action