Skip to content

Commit 19962e3

Browse files
authored
Merge pull request #175 from cnblogs/go-net8
chore: go net8
2 parents cf2eaa0 + 589c9c3 commit 19962e3

File tree

30 files changed

+41
-71
lines changed

30 files changed

+41
-71
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12-
container: mcr.microsoft.com/dotnet/sdk:7.0
12+
container: mcr.microsoft.com/dotnet/sdk:8.0
1313

1414
steps:
1515
- name: Checkout

.github/workflows/pack.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14-
- uses: actions/setup-dotnet@v3.0.3
14+
- uses: actions/setup-dotnet@v3
1515
with:
16-
dotnet-version: '7'
16+
dotnet-version: '8'
1717
- name: Nuget Push
1818
env:
1919
nuget_key: ${{ secrets.NUGETAPIKEY }}

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Authors>Cnblogs</Authors>

src/Cnblogs.Architecture.Ddd.Cqrs.Abstractions/Cnblogs.Architecture.Ddd.Cqrs.Abstractions.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
<ItemGroup>
1818
<PackageReference Include="Mapster" Version="7.4.0" />
19-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.1" />
20-
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="7.0.0" />
19+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
20+
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="8.0.0" />
2121
</ItemGroup>
2222

2323
</Project>

src/Cnblogs.Architecture.Ddd.Cqrs.Abstractions/ICommandHandler.Generic.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ namespace Cnblogs.Architecture.Ddd.Cqrs.Abstractions;
1212
/// <typeparam name="TError">The error type for this handler.</typeparam>
1313
public interface ICommandHandler<TCommand, TView, TError> : IRequestHandler<TCommand, CommandResponse<TView, TError>>
1414
where TCommand : ICommand<TView, TError>
15-
where TError : Enumeration
16-
{
17-
}
15+
where TError : Enumeration;

src/Cnblogs.Architecture.Ddd.Cqrs.Abstractions/ICommandHandler.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@ namespace Cnblogs.Architecture.Ddd.Cqrs.Abstractions;
1111
/// <typeparam name="TError">The error type for this handler.</typeparam>
1212
public interface ICommandHandler<TCommand, TError> : IRequestHandler<TCommand, CommandResponse<TError>>
1313
where TCommand : ICommand<TError>
14-
where TError : Enumeration
15-
{
16-
}
14+
where TError : Enumeration;

src/Cnblogs.Architecture.Ddd.Cqrs.Abstractions/IDomainEventHandler.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,4 @@ namespace Cnblogs.Architecture.Ddd.Cqrs.Abstractions;
99
/// </summary>
1010
/// <typeparam name="TDomainEvent">The domain event type for this handler to handle.</typeparam>
1111
public interface IDomainEventHandler<TDomainEvent> : INotificationHandler<TDomainEvent>
12-
where TDomainEvent : DomainEvent
13-
{
14-
}
12+
where TDomainEvent : DomainEvent;

src/Cnblogs.Architecture.Ddd.Cqrs.Abstractions/IListQuery.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ namespace Cnblogs.Architecture.Ddd.Cqrs.Abstractions;
66
/// Represents a query returns a list of items.
77
/// </summary>
88
/// <typeparam name="TList">The list to return, usually a <see cref="List{T}"/>.</typeparam>
9-
public interface IListQuery<TList> : IRequest<TList>
10-
{
11-
}
9+
public interface IListQuery<TList> : IRequest<TList>;

src/Cnblogs.Architecture.Ddd.Cqrs.Abstractions/IListQueryHandler.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@ namespace Cnblogs.Architecture.Ddd.Cqrs.Abstractions;
88
/// <typeparam name="TQuery">The <see cref="IListQuery{TList}" /> been handled.</typeparam>
99
/// <typeparam name="TList">The result type of <typeparamref name="TQuery"/>.</typeparam>
1010
public interface IListQueryHandler<TQuery, TList> : IRequestHandler<TQuery, TList>
11-
where TQuery : IListQuery<TList>
12-
{
13-
}
11+
where TQuery : IListQuery<TList>;

src/Cnblogs.Architecture.Ddd.Cqrs.Abstractions/IPageableQueryHandler.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@ namespace Cnblogs.Architecture.Ddd.Cqrs.Abstractions;
88
/// <typeparam name="TQuery">The <see cref="IPageableQuery{TElement}" /> to handle.</typeparam>
99
/// <typeparam name="TView">The type for each item in <see cref="PagedList{T}"/>.</typeparam>
1010
public interface IPageableQueryHandler<TQuery, TView> : IListQueryHandler<TQuery, PagedList<TView>>
11-
where TQuery : IPageableQuery<TView>
12-
{
13-
}
11+
where TQuery : IPageableQuery<TView>;

0 commit comments

Comments
 (0)