-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support cancellation token, pass resolver options and cancellation to…
…ken to all resolvers
- Loading branch information
1 parent
2ea7bd0
commit 4a54342
Showing
12 changed files
with
97 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
DotnetThirdPartyNotices/Services/IFileVersionInfoLicenseResolver.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
using DotnetThirdPartyNotices.Models; | ||
using System.Diagnostics; | ||
using System.Threading.Tasks; | ||
|
||
namespace DotnetThirdPartyNotices.Services; | ||
|
||
internal interface IFileVersionInfoLicenseResolver : ILicenseResolver | ||
{ | ||
bool CanResolve(FileVersionInfo fileVersionInfo); | ||
Task<string?> Resolve(FileVersionInfo fileVersionInfo); | ||
Task<bool> CanResolveAsync(FileVersionInfo fileVersionInfo, CancellationToken cancellationToken); | ||
Task<string?> ResolveAsync(FileVersionInfo fileVersionInfo, ResolverOptions resolverOptions, CancellationToken cancellationToken); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
namespace DotnetThirdPartyNotices.Services; | ||
using DotnetThirdPartyNotices.Models; | ||
|
||
namespace DotnetThirdPartyNotices.Services; | ||
|
||
internal interface IUriLicenseResolver | ||
{ | ||
bool CanResolve(Uri licenseUri); | ||
Task<string?> Resolve(Uri licenseUri); | ||
Task<bool> CanResolveAsync(Uri licenseUri, ResolverOptions resolverOptions, CancellationToken cancellationToken); | ||
Task<string?> ResolveAsync(Uri licenseUri, ResolverOptions resolverOptions, CancellationToken cancellationToken); | ||
} |
Oops, something went wrong.