Skip to content

Commit bb6d54e

Browse files
committed
Hardening the "can you resolve this type" determination against bi-directional dependencies. Wolverine issue. Bumps to 13.0.1
1 parent 33ad854 commit bb6d54e

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

src/Lamar.Diagnostics/Lamar.Diagnostics.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Description>Adds diagnostic checks to the command line of your Lamar-enabled ASP.Net Core app</Description>
5-
<Version>13.0.0</Version>
5+
<Version>13.0.1</Version>
66
<Authors>Jeremy D. Miller</Authors>
77
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
88
<DebugType>portable</DebugType>

src/Lamar.Microsoft.DependencyInjection/Lamar.Microsoft.DependencyInjection.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<Description>Lamar Adapter for HostBuilder Integration</Description>
4-
<Version>13.0.0</Version>
4+
<Version>13.0.1</Version>
55
<Authors>Jeremy D. Miller</Authors>
66
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
77
<DebugType>portable</DebugType>

src/Lamar/Lamar.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<Description>Fast ASP.Net Core compatible IoC Tool, Successor to StructureMap</Description>
4-
<Version>13.0.0</Version>
4+
<Version>13.0.1</Version>
55
<Authors>Jeremy D. Miller</Authors>
66
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
77
<DebugType>portable</DebugType>

src/Lamar/ServiceGraph.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,14 @@ internal void ClearPlanning()
513513

514514
public bool CouldResolve(Type type)
515515
{
516-
return FindDefault(type) != null;
516+
try
517+
{
518+
return FindDefault(type) != null;
519+
}
520+
catch (Exception)
521+
{
522+
return false;
523+
}
517524
}
518525

519526

0 commit comments

Comments
 (0)