Skip to content

Commit c2e8f6b

Browse files
authored
Update copyright year to 2025 and add .NET 9 test target (#392)
Changed copyright year to 2025 across all source and test files. Updated test project to target net8.0 and net9.0, removed net6.0, and bumped Microsoft.NET.Test.Sdk to 17.14.1. Added API approval file for .NET 9.0.
1 parent b1a34a0 commit c2e8f6b

12 files changed

+37
-13
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName=".NET Standard 2.0")]
2+
namespace Punchclock
3+
{
4+
public class OperationQueue : System.IDisposable
5+
{
6+
public OperationQueue(int maximumConcurrent = 4) { }
7+
public void Dispose() { }
8+
protected virtual void Dispose(bool isDisposing) { }
9+
public System.IObservable<T> EnqueueObservableOperation<T>(int priority, System.Func<System.IObservable<T>> asyncCalculationFunc) { }
10+
public System.IObservable<T> EnqueueObservableOperation<T>(int priority, string key, System.Func<System.IObservable<T>> asyncCalculationFunc) { }
11+
public System.IObservable<T> EnqueueObservableOperation<T, TDontCare>(int priority, string key, System.IObservable<TDontCare> cancel, System.Func<System.IObservable<T>> asyncCalculationFunc) { }
12+
public System.IDisposable PauseQueue() { }
13+
public void SetMaximumConcurrent(int maximumConcurrent) { }
14+
public System.IObservable<System.Reactive.Unit> ShutdownQueue() { }
15+
}
16+
public static class OperationQueueExtensions
17+
{
18+
public static System.Threading.Tasks.Task Enqueue(this Punchclock.OperationQueue operationQueue, int priority, System.Func<System.Threading.Tasks.Task> asyncOperation) { }
19+
public static System.Threading.Tasks.Task Enqueue(this Punchclock.OperationQueue operationQueue, int priority, string key, System.Func<System.Threading.Tasks.Task> asyncOperation) { }
20+
public static System.Threading.Tasks.Task Enqueue(this Punchclock.OperationQueue operationQueue, int priority, string key, System.Func<System.Threading.Tasks.Task> asyncOperation, System.Threading.CancellationToken token) { }
21+
public static System.Threading.Tasks.Task<T> Enqueue<T>(this Punchclock.OperationQueue operationQueue, int priority, System.Func<System.Threading.Tasks.Task<T>> asyncOperation) { }
22+
public static System.Threading.Tasks.Task<T> Enqueue<T>(this Punchclock.OperationQueue operationQueue, int priority, string key, System.Func<System.Threading.Tasks.Task<T>> asyncOperation) { }
23+
public static System.Threading.Tasks.Task<T> Enqueue<T>(this Punchclock.OperationQueue operationQueue, int priority, string key, System.Func<System.Threading.Tasks.Task<T>> asyncOperation, System.Threading.CancellationToken token) { }
24+
}
25+
}

src/Punchclock.Tests/API/ApiApprovalTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2021 .NET Foundation and Contributors. All rights reserved.
1+
// Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved.
22
// Licensed to the .NET Foundation under one or more agreements.
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.

src/Punchclock.Tests/API/ApiExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2023 .NET Foundation and Contributors. All rights reserved.
1+
// Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved.
22
// Licensed to the .NET Foundation under one or more agreements.
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.

src/Punchclock.Tests/OperationQueueTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2021 .NET Foundation and Contributors. All rights reserved.
1+
// Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved.
22
// Licensed to the .NET Foundation under one or more agreements.
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.

src/Punchclock.Tests/Punchclock.Tests.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
3+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
44
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);net472</TargetFrameworks>
5-
<NoWarn>$(NoWarn);1591;CA1707;SA1633</NoWarn>
65
</PropertyGroup>
76

87
<ItemGroup>
98
<PackageReference Include="DynamicData" Version="9.4.1" />
109
<PackageReference Include="splat" Version="15.*" />
1110
<PackageReference Include="PublicApiGenerator" Version="11.4.6" />
1211
<PackageReference Include="Verify.Xunit" Version="28.16.0" />
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
1413
<PackageReference Include="xunit" Version="2.9.3" />
1514
<PackageReference Include="xunit.runner.console" Version="2.9.3" />
1615
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.1" />

src/Punchclock/KeyedOperation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
1+
// Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved.
22
// Licensed to the .NET Foundation under one or more agreements.
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.

src/Punchclock/OperationQueue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
1+
// Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved.
22
// Licensed to the .NET Foundation under one or more agreements.
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.

src/Punchclock/OperationQueueExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
1+
// Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved.
22
// Licensed to the .NET Foundation under one or more agreements.
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.

src/Punchclock/PriorityQueue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
1+
// Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved.
22
// Licensed to the .NET Foundation under one or more agreements.
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.

src/Punchclock/PrioritySemaphoreSubject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
1+
// Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved.
22
// Licensed to the .NET Foundation under one or more agreements.
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.

0 commit comments

Comments
 (0)