ContentWebProxyGetContentAsync - метод

Retrieves content from the system using the provided content access token.

Definition

Пространство имён: Tessa.Content
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public Task<ContentResult> GetContentAsync(
	string type,
	string contentID,
	string? token,
	Guid? userID = null,
	Dictionary<string, string?>? parameters = null,
	Func<IWebProxyContext, ValueTask>? modifyRequestFuncAsync = null,
	CancellationToken cancellationToken = default
)

Параметры

type  String
The content type (e.g., file type, media type).
contentID  String
The unique identifier for the content.
token  String
The content access token.
userID  NullableGuid  (Optional)
An optional user identifier if applicable.
parameters  DictionaryString, String  (Optional)
An optional additional query parameters if applicable.
modifyRequestFuncAsync  FuncIWebProxyContext, ValueTask  (Optional)
An optional function to modify the request.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

Возвращаемое значение

TaskContentResult
Represents the result of a content request.

См. также