Skip to content

Commit

Permalink
Merge pull request #699 from mcneel/AndyPayne/Compute302
Browse files Browse the repository at this point in the history
  • Loading branch information
andyopayne authored Jan 6, 2025
2 parents 32fc0de + bb04194 commit cb58ffa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions src/compute.geometry/GeometryEndPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public static IEnumerable<GeometryEndPoint> AllEndPoints
{
foreach (var customEndpoint in customEndpoints)
{

foreach (var endpoint in GeometryEndPoint.Create(customEndpoint.Item2))
{
endpoint.UpdatePath(customEndpoint.Item1);
Expand Down Expand Up @@ -193,21 +194,24 @@ public static List<GeometryEndPoint> Create(Type t)
break;
}

// This is the general "catch all" endpoint that attempts to figure out the best routine to call
GeometryEndPoint endpoint = new GeometryEndPoint(t, overloads.ToArray());
endpoints.Add(endpoint);
if (overloads.Count > 1)
{
// This is the general "catch all" endpoint that attempts to figure out the best routine to call
GeometryEndPoint endpoint = new GeometryEndPoint(t, overloads.ToArray());
endpoints.Add(endpoint);
}

foreach (var overload in overloads)
{
// generate explicit endpoints for all overloads, even if there are no parameters (see #142)
endpoints.Add(new GeometryEndPoint(t, overload));
}

}

return endpoints;
}


protected static string PrettyString(Type t)
{
string rc = t.ToString().Replace("&", "");
Expand Down
6 changes: 3 additions & 3 deletions src/compute.geometry/compute.geometry.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
<PackageReference Include="Serilog.Expressions" Version="3.4.1" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="System.Management" Version="7.0.0" />
<PackageReference Include="System.Runtime.Caching" Version="7.0.0" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="7.0.0" />
<PackageReference Include="System.Management" Version="8.0.0" />
<PackageReference Include="System.Runtime.Caching" Version="8.0.0" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="8.0.0" />
</ItemGroup>
</Project>

0 comments on commit cb58ffa

Please sign in to comment.