forked from App-vNext/Polly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a console project that validates whether the new-in-v8 Polly assemblies are AoT compatible. Relates to App-vNext#1732.
- Loading branch information
1 parent
3e4656b
commit 6b03918
Showing
5 changed files
with
58 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<Nullable>enable</Nullable> | ||
<OutputType>Exe</OutputType> | ||
<PublishAot>true</PublishAot> | ||
<SKIP_POLLY_ANALYZERS>true</SKIP_POLLY_ANALYZERS> | ||
<TargetFramework>net7.0</TargetFramework> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\Polly.Core\Polly.Core.csproj" /> | ||
<ProjectReference Include="..\..\src\Polly.Extensions\Polly.Extensions.csproj" /> | ||
<ProjectReference Include="..\..\src\Polly.RateLimiting\Polly.RateLimiting.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<TrimmerRootAssembly Include="Polly.Core" /> | ||
<TrimmerRootAssembly Include="Polly.Extensions" /> | ||
<TrimmerRootAssembly Include="Polly.RateLimiting" /> | ||
</ItemGroup> | ||
</Project> |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using Polly.Utils.Pipeline; | ||
|
||
// See https://github.com/App-vNext/Polly/issues/1732#issuecomment-1782466692. | ||
// This code is needed as a workaround until https://github.com/dotnet/runtime/issues/94131 is resolved. | ||
var pipeline = CompositeComponent.Create(new[] { PipelineComponent.Empty, PipelineComponent.Empty }, null!, null!); | ||
await pipeline.ExecuteCore<int, int>((state, context) => default, default!, default); | ||
|
||
Console.WriteLine("Hello Polly!"); |