Skip to content

Commit d181b53

Browse files
authored
Merge pull request #310 from json-api-dotnet/jaredcnance-patch-1
fix(IResourceService): inheritance hierarchy creates problems with Autofac
2 parents 87a0bb2 + 648c181 commit d181b53

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

src/JsonApiDotNetCore/JsonApiDotNetCore.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<VersionPrefix>2.3.1</VersionPrefix>
3+
<VersionPrefix>2.3.2</VersionPrefix>
44
<TargetFrameworks>$(NetStandardVersion)</TargetFrameworks>
55
<AssemblyName>JsonApiDotNetCore</AssemblyName>
66
<PackageId>JsonApiDotNetCore</PackageId>

src/JsonApiDotNetCore/Services/Contract/IResourceCmdService.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
namespace JsonApiDotNetCore.Services
44
{
5-
public interface IResourceCmdService<T> : IResourceCmdService<T, int>
5+
public interface IResourceCmdService<T> :
6+
ICreateService<T>,
7+
IUpdateService<T>,
8+
IUpdateRelationshipService<T>,
9+
IDeleteService<T>,
10+
IResourceCmdService<T, int>
611
where T : class, IIdentifiable<int>
712
{ }
813

src/JsonApiDotNetCore/Services/Contract/IResourceQueryService.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
namespace JsonApiDotNetCore.Services
44
{
5-
public interface IResourceQueryService<T> : IResourceQueryService<T, int>
5+
public interface IResourceQueryService<T> :
6+
IGetAllService<T>,
7+
IGetByIdService<T>,
8+
IGetRelationshipsService<T>,
9+
IGetRelationshipService<T>,
10+
IResourceQueryService<T, int>
611
where T : class, IIdentifiable<int>
712
{ }
813

src/JsonApiDotNetCore/Services/Contract/IResourceService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace JsonApiDotNetCore.Services
44
{
55
public interface IResourceService<T>
6-
: IResourceService<T, int>
6+
: IResourceCmdService<T>, IResourceQueryService<T>, IResourceService<T, int>
77
where T : class, IIdentifiable<int>
88
{ }
99

0 commit comments

Comments
 (0)