diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index b454182..74d3126 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -17,12 +17,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.x - include-prerelease: false + dotnet-version: | + 6.0.x + 7.0.x # Create Local NuGet Source @@ -47,4 +48,8 @@ jobs: - name: Push Packages if: ${{ github.event_name == 'release' }} - run: dotnet nuget push "../../../nuget/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NuGetSourcePassword }} --skip-duplicate + run: > + dotnet nuget push "../../../nuget/*.nupkg" + -s https://api.nuget.org/v3/index.json + -k ${{ secrets.NuGetSourcePassword }} + --skip-duplicate diff --git a/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.T/AsyncPipeline.T.cs b/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.T/AsyncPipeline.T.cs index 1ec3ab0..cb7c6f6 100644 --- a/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.T/AsyncPipeline.T.cs +++ b/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.T/AsyncPipeline.T.cs @@ -31,15 +31,15 @@ private AsyncPipeline(int _) { isStopped = true; valueTask = default; - cancellationToken = default; options = null; + cancellationToken = default; } public AsyncPipelineOptions Options => - options ?? InnerEmptyOptions.Value; + options ?? InnerDefaultOptions.Value; - private static class InnerEmptyOptions + private static class InnerDefaultOptions { internal static readonly AsyncPipelineOptions Value = new(); } diff --git a/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.csproj b/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.csproj index a09c76b..9b48c8e 100644 --- a/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.csproj +++ b/src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.csproj @@ -1,7 +1,7 @@ - net6.0 + net6.0;net7.0 disable enable true @@ -13,7 +13,7 @@ https://github.com/pfpack/early-core-asyncpipeline pfpack Andrei Sergeev, Pavel Moskovoy - Copyright © 2020-2022 Andrei Sergeev, Pavel Moskovoy + Copyright © 2020-2023 Andrei Sergeev, Pavel Moskovoy EarlyFuncPack Core.AsyncPipeline is a core library for .NET consisting of asynchronous pipeline. System EarlyFuncPack.Core.AsyncPipeline @@ -32,7 +32,7 @@ - + \ No newline at end of file