Skip to content

Commit

Permalink
Hardening the "can you resolve this type" determination against bi-di…
Browse files Browse the repository at this point in the history
…rectional dependencies. Wolverine issue. Bumps to 13.0.1
  • Loading branch information
jeremydmiller committed Jan 15, 2024
1 parent 33ad854 commit bb6d54e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Lamar.Diagnostics/Lamar.Diagnostics.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>Adds diagnostic checks to the command line of your Lamar-enabled ASP.Net Core app</Description>
<Version>13.0.0</Version>
<Version>13.0.1</Version>
<Authors>Jeremy D. Miller</Authors>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<DebugType>portable</DebugType>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>Lamar Adapter for HostBuilder Integration</Description>
<Version>13.0.0</Version>
<Version>13.0.1</Version>
<Authors>Jeremy D. Miller</Authors>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<DebugType>portable</DebugType>
Expand Down
2 changes: 1 addition & 1 deletion src/Lamar/Lamar.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>Fast ASP.Net Core compatible IoC Tool, Successor to StructureMap</Description>
<Version>13.0.0</Version>
<Version>13.0.1</Version>
<Authors>Jeremy D. Miller</Authors>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<DebugType>portable</DebugType>
Expand Down
9 changes: 8 additions & 1 deletion src/Lamar/ServiceGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,14 @@ internal void ClearPlanning()

public bool CouldResolve(Type type)
{
return FindDefault(type) != null;
try
{
return FindDefault(type) != null;
}
catch (Exception)
{
return false;
}
}


Expand Down

0 comments on commit bb6d54e

Please sign in to comment.