Skip to content

Commit

Permalink
Merge branch 'hotfix/2.24.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Jun 17, 2024
2 parents b2df95d + 3db7ea0 commit dc2acc5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Stars.Console/Terradue.Stars.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net6.0</TargetFrameworks>
<Version>2.24.4</Version>
<Version>2.24.5</Version>
<!-- <VersionSuffix>beta.8</VersionSuffix> -->
<Description>Stars is a CLI for working with Spatio Temporal Catalog such as STAC but not only</Description>
<Version Condition=" '$(VersionSuffix)' != '' ">$(Version)-$(VersionSuffix)</Version>
Expand Down
2 changes: 1 addition & 1 deletion src/Stars.Data/Terradue.Stars.Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ProjectName>Terradue.Stars.Data</ProjectName>
<Title>Terradue.Stars.Data</Title>
<Description>Collection of data Plugins for Terradue.Stars</Description>
<Version>2.24.4</Version>
<Version>2.24.5</Version>
<!-- <VersionSuffix>beta.8</VersionSuffix> -->
<Version Condition=" '$(VersionSuffix)' != '' ">$(Version)-$(VersionSuffix)</Version>
<NoWarn>NU1603</NoWarn>
Expand Down
16 changes: 8 additions & 8 deletions src/Stars.Services/Router/RouterService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ public async Task<object> RouteAsync(IResource route, int recursivity, IRouter p
// Execute the function for the item and return;
return await onItemFunction.Invoke(itemNode, prevRouter, state, ct);
}
// If route is a Collection
if (route is ICollection collectionNode)
{
// Execute the function for the collection and return;
return await onCollectionFunction.Invoke(collectionNode, prevRouter, state, ct);
}
// Ask the router manager if there is another router available for this route
router = await routersManager.GetRouterAsync(route);
// Definitively impossible to Route
Expand All @@ -88,8 +82,8 @@ public async Task<object> RouteAsync(IResource route, int recursivity, IRouter p
// If route is a Collection
if (newRoute is ICollection)
{
// Execute the function for the collection and return;
return await onCollectionFunction.Invoke(newRoute as ICollection, prevRouter, state, ct);
// Execute the function for the collection
await onCollectionFunction.Invoke(newRoute as ICollection, prevRouter, state, ct);
}

catalogNode = newRoute as ICatalog;
Expand All @@ -103,6 +97,12 @@ public async Task<object> RouteAsync(IResource route, int recursivity, IRouter p
}
else
{
// If route is a Collection
if (catalogNode is ICollection)
{
// Execute the function for the collection
await onCollectionFunction.Invoke(catalogNode as ICollection, router, state, ct);
}
// If the resource is a catalog, we keep the previous router
router = prevRouter;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Stars.Services/Terradue.Stars.Services.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
<Title>Terradue.Stars</Title>
<Description>Stars is a set of services for working with Spatio Temporal Catalog such as STAC but not only</Description>
<Version>2.24.4</Version>
<Version>2.24.5</Version>
<!-- <VersionSuffix>beta.8</VersionSuffix> -->
<Version Condition=" '$(VersionSuffix)' != '' ">$(Version)-$(VersionSuffix)</Version>
<AssemblyName>Terradue.Stars.Services</AssemblyName>
Expand Down

0 comments on commit dc2acc5

Please sign in to comment.