protected BaseJsonApiController( IJsonApiOptions jsonApiOptions, ILoggerFactory loggerFactory, IGetAllService <T, TId> getAll = null, IGetByIdService <T, TId> getById = null, IGetRelationshipService <T, TId> getRelationship = null, IGetRelationshipsService <T, TId> getRelationships = null, ICreateService <T, TId> create = null, IUpdateService <T, TId> update = null, IUpdateRelationshipService <T, TId> updateRelationships = null, IDeleteService <T, TId> delete = null) { _jsonApiOptions = jsonApiOptions; _logger = loggerFactory.CreateLogger <BaseJsonApiController <T, TId> >(); _getAll = getAll; _getById = getById; _getRelationship = getRelationship; _getRelationships = getRelationships; _create = create; _update = update; _updateRelationships = updateRelationships; _delete = delete; _logger.LogTrace("Executing constructor."); }
public GetWithRelationshipsJsonApiController( IJsonApiContext jsonApiContext, IResourceQueryService <T, TId> queryService = null) : base(jsonApiContext, queryService) { _getRelationship = queryService; _getRelationships = queryService; }
public GetWithRelationshipsJsonApiController( IJsonApiContext jsonApiContext, IResourceService <T, TId> resourceService) : base(jsonApiContext, resourceService) { _getRelationship = resourceService; _getRelationships = resourceService; }
public FullBaseJsonApiController( IJsonApiContext jsonApiContext, IResourceService <T, TId> resourceService) : base(jsonApiContext, resourceService) { _getRelationship = resourceService; _getRelationships = resourceService; _updateRelationships = resourceService; }
public FullBaseJsonApiController( IJsonApiContext jsonApiContext, IResourceQueryService <T, TId> queryService = null, IResourceCmdService <T, TId> cmdService = null) : base(jsonApiContext, queryService, cmdService) { _getRelationship = queryService; _getRelationships = queryService; _updateRelationships = cmdService; }
public GetWithRelationshipsJsonApiController( IJsonApiContext jsonApiContext, IGetAllService <T, TId> getAll = null, IGetByIdService <T, TId> getById = null, IGetRelationshipService <T, TId> getRelationship = null, IGetRelationshipsService <T, TId> getRelationships = null ) : base(jsonApiContext, getAll, getById) { _getRelationship = getRelationship; _getRelationships = getRelationships; }
public JsonApiController( IJsonApiContext jsonApiContext, IGetAllService <T, int> getAll = null, IGetByIdService <T, int> getById = null, IGetRelationshipService <T, int> getRelationship = null, IGetRelationshipsService <T, int> getRelationships = null, ICreateService <T, int> create = null, IUpdateService <T, int> update = null, IUpdateRelationshipService <T, int> updateRelationships = null, IDeleteService <T, int> delete = null ) : base(jsonApiContext, getAll, getById, getRelationship, getRelationships, create, update, updateRelationships, delete) { }
public ResourceController( IJsonApiOptions jsonApiOptions, ILoggerFactory loggerFactory, IGetAllService <Resource, int> getAll = null, IGetByIdService <Resource, int> getById = null, IGetRelationshipService <Resource, int> getRelationship = null, IGetRelationshipsService <Resource, int> getRelationships = null, ICreateService <Resource, int> create = null, IUpdateService <Resource, int> update = null, IUpdateRelationshipService <Resource, int> updateRelationships = null, IDeleteService <Resource, int> delete = null) : base(jsonApiOptions, loggerFactory, getAll, getById, getRelationship, getRelationships, create, update, updateRelationships, delete) { }
public BaseJsonApiController( IJsonApiOptions jsonApiOptions, IResourceQueryService <T, TId> queryService = null, IResourceCmdService <T, TId> cmdService = null) { _jsonApiOptions = jsonApiOptions; _getAll = queryService; _getById = queryService; _getRelationship = queryService; _getRelationships = queryService; _create = cmdService; _update = cmdService; _updateRelationships = cmdService; _delete = cmdService; }
public FullBaseJsonApiController( IJsonApiContext jsonApiContext, IGetAllService <T, TId> getAll = null, IGetByIdService <T, TId> getById = null, IGetRelationshipService <T, TId> getRelationship = null, IGetRelationshipsService <T, TId> getRelationships = null, ICreateService <T, TId> create = null, IUpdateService <T, TId> update = null, IUpdateRelationshipService <T, TId> updateRelationships = null, IDeleteService <T, TId> delete = null ) : base(jsonApiContext, getAll, getById, create, update, delete) { _getRelationship = getRelationship; _getRelationships = getRelationships; _updateRelationships = updateRelationships; }
/// <param name="jsonApiOptions"></param> /// <param name="getAll"></param> /// <param name="getById"></param> /// <param name="getRelationship"></param> /// <param name="getRelationships"></param> /// <param name="create"></param> /// <param name="update"></param> /// <param name="updateRelationships"></param> /// <param name="delete"></param> public BaseJsonApiController( IJsonApiOptions jsonApiOptions, IGetAllService <T, TId> getAll = null, IGetByIdService <T, TId> getById = null, IGetRelationshipService <T, TId> getRelationship = null, IGetRelationshipsService <T, TId> getRelationships = null, ICreateService <T, TId> create = null, IUpdateService <T, TId> update = null, IUpdateRelationshipService <T, TId> updateRelationships = null, IDeleteService <T, TId> delete = null) { _jsonApiOptions = jsonApiOptions; _getAll = getAll; _getById = getById; _getRelationship = getRelationship; _getRelationships = getRelationships; _create = create; _update = update; _updateRelationships = updateRelationships; _delete = delete; }
public BaseJsonApiController( IJsonApiOptions jsonApiOptions, IResourceService <T, TId> resourceService, ILoggerFactory loggerFactory) { if (loggerFactory != null) { _logger = loggerFactory.CreateLogger <BaseJsonApiController <T, TId> >(); } else { _logger = new Logger <BaseJsonApiController <T, TId> >(new LoggerFactory()); } _jsonApiOptions = jsonApiOptions; _getAll = resourceService; _getById = resourceService; _getRelationship = resourceService; _getRelationships = resourceService; _create = resourceService; _update = resourceService; _updateRelationships = resourceService; _delete = resourceService; }