コード例 #1
0
    /// <inheritdoc />
    public async Task <AssetRenditionModel> GetAssetRenditionAsync(AssetRenditionIdentifier identifier)
    {
        if (identifier == null)
        {
            throw new ArgumentNullException(nameof(identifier));
        }

        var endpointUrl = _urlBuilder.BuildAssetRenditionsUrl(identifier);

        return(await _actionInvoker.InvokeReadOnlyMethodAsync <AssetRenditionModel>(endpointUrl, HttpMethod.Get));
    }