@@ -41,30 +41,31 @@ public abstract class BaseJsonApiController<TResource, TId> : CoreJsonApiControl
41
41
/// <summary>
42
42
/// Creates an instance from a read/write service.
43
43
/// </summary>
44
- protected BaseJsonApiController ( IJsonApiOptions options , IResourceGraph resourceGraph , ILoggerFactory loggerFactory , IResourceService < TResource , TId > resourceService )
44
+ protected BaseJsonApiController ( IJsonApiOptions options , IResourceGraph resourceGraph , ILoggerFactory loggerFactory ,
45
+ IResourceService < TResource , TId > resourceService )
45
46
: this ( options , resourceGraph , loggerFactory , resourceService , resourceService )
46
47
{
47
48
}
48
49
49
50
/// <summary>
50
51
/// Creates an instance from separate services for reading and writing.
51
52
/// </summary>
52
- protected BaseJsonApiController ( IJsonApiOptions options , IResourceGraph resourceGraph , ILoggerFactory loggerFactory , IResourceQueryService < TResource , TId > ? queryService = null ,
53
- IResourceCommandService < TResource , TId > ? commandService = null )
54
- : this ( options , resourceGraph , loggerFactory , queryService , queryService , queryService , queryService , commandService , commandService , commandService ,
55
- commandService , commandService , commandService )
53
+ protected BaseJsonApiController ( IJsonApiOptions options , IResourceGraph resourceGraph , ILoggerFactory loggerFactory ,
54
+ IResourceQueryService < TResource , TId > ? queryService = null , IResourceCommandService < TResource , TId > ? commandService = null )
55
+ : this ( options , resourceGraph , loggerFactory , queryService , queryService , queryService , queryService , commandService , commandService ,
56
+ commandService , commandService , commandService , commandService )
56
57
{
57
58
}
58
59
59
60
/// <summary>
60
61
/// Creates an instance from separate services for the various individual read and write methods.
61
62
/// </summary>
62
- protected BaseJsonApiController ( IJsonApiOptions options , IResourceGraph resourceGraph , ILoggerFactory loggerFactory , IGetAllService < TResource , TId > ? getAll = null ,
63
- IGetByIdService < TResource , TId > ? getById = null , IGetSecondaryService < TResource , TId > ? getSecondary = null ,
64
- IGetRelationshipService < TResource , TId > ? getRelationship = null , ICreateService < TResource , TId > ? create = null ,
65
- IAddToRelationshipService < TResource , TId > ? addToRelationship = null , IUpdateService < TResource , TId > ? update = null ,
66
- ISetRelationshipService < TResource , TId > ? setRelationship = null , IDeleteService < TResource , TId > ? delete = null ,
67
- IRemoveFromRelationshipService < TResource , TId > ? removeFromRelationship = null )
63
+ protected BaseJsonApiController ( IJsonApiOptions options , IResourceGraph resourceGraph , ILoggerFactory loggerFactory ,
64
+ IGetAllService < TResource , TId > ? getAll = null , IGetByIdService < TResource , TId > ? getById = null ,
65
+ IGetSecondaryService < TResource , TId > ? getSecondary = null , IGetRelationshipService < TResource , TId > ? getRelationship = null ,
66
+ ICreateService < TResource , TId > ? create = null , IAddToRelationshipService < TResource , TId > ? addToRelationship = null ,
67
+ IUpdateService < TResource , TId > ? update = null , ISetRelationshipService < TResource , TId > ? setRelationship = null ,
68
+ IDeleteService < TResource , TId > ? delete = null , IRemoveFromRelationshipService < TResource , TId > ? removeFromRelationship = null )
68
69
{
69
70
ArgumentGuard . NotNull ( options , nameof ( options ) ) ;
70
71
ArgumentGuard . NotNull ( resourceGraph , nameof ( resourceGraph ) ) ;
0 commit comments