public ComponentPresentation GetComponentPresentation(ContentNamespace ns, int publicationId, int componentId, int templateId, string customMetaFilter, ContentIncludeMode contentIncludeMode, IContextData contextData) => _client.Execute <ContentQuery>( GraphQLRequests.ComponentPresentation(ns, publicationId, componentId, templateId, customMetaFilter, contentIncludeMode, contextData, GlobalContextDataInternal)) .TypedResponseData.ComponentPresentation;
public async Task <ComponentPresentation> GetComponentPresentationAsync(ContentNamespace ns, int publicationId, int componentId, int templateId, string customMetaFilter, ContentIncludeMode contentIncludeMode, IContextData contextData, CancellationToken cancellationToken) => (await _client.ExecuteAsync <ContentQuery>( GraphQLRequests.ComponentPresentation(ns, publicationId, componentId, templateId, customMetaFilter, contentIncludeMode, contextData, GlobalContextDataInternal), cancellationToken).ConfigureAwait(false)) .TypedResponseData.ComponentPresentation;