Skip to content

Commit 104356a

Browse files
committed
chore: go net8
1 parent cf2eaa0 commit 104356a

File tree

28 files changed

+38
-68
lines changed

28 files changed

+38
-68
lines changed

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>;

src/Cnblogs.Architecture.Ddd.Cqrs.Abstractions/IQuery.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 query for single item.
77
/// </summary>
88
/// <typeparam name="TView">The type of item to query.</typeparam>
9-
public interface IQuery<TView> : IRequest<TView?>
10-
{
11-
}
9+
public interface IQuery<TView> : IRequest<TView?>;

src/Cnblogs.Architecture.Ddd.Cqrs.Abstractions/IQueryHandler.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="IQuery{TView}" /> type to handle.</typeparam>
99
/// <typeparam name="TView">The type of item to query.</typeparam>
1010
public interface IQueryHandler<TQuery, TView> : IRequestHandler<TQuery, TView?>
11-
where TQuery : IQuery<TView>
12-
{
13-
}
11+
where TQuery : IQuery<TView>;

0 commit comments

Comments
 (0)