Ejemplo n.º 1
0
 public PaginatedLinksHeader(
     string baseRoute,
     OperationLinks operationLinks,
     RelationLinks relationLinks,
     PaginationMetadata pagination,
     IFilterMetadataProvider filterMetadata = null
     )
 {
     _operationLinks = ThrowIf.Null(operationLinks, nameof(operationLinks));
     _relationLinks  = relationLinks;
     _baseRoute      = ThrowIf.NullOrWhiteSpace(baseRoute, nameof(baseRoute));
     _pagination     = ThrowIf.Null(pagination, nameof(pagination));
     _filterMetadata = filterMetadata ?? new NoFilterMetadata();
 }
Ejemplo n.º 2
0
 public CrudLinksHeader(OperationLinks operationLinks, RelationLinks relationLinks)
 {
     OperationLinks = ThrowIf.Null(operationLinks, nameof(operationLinks));
     RelationLinks  = relationLinks;
 }