ContentWebProxyGetContentAsync - метод
Retrieves content from the system using the provided content access token.
Пространство имён: Tessa.ContentСборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
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
)
Public Function GetContentAsync (
type As String,
contentID As String,
token As String,
Optional userID As Guid? = Nothing,
Optional parameters As Dictionary(Of String, String) = Nothing,
Optional modifyRequestFuncAsync As Func(Of IWebProxyContext, ValueTask) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ContentResult)
public:
Task<ContentResult^>^ GetContentAsync(
String^ type,
String^ contentID,
String^ token,
Nullable<Guid> userID = nullptr,
Dictionary<String^, String^>^ parameters = nullptr,
Func<IWebProxyContext^, ValueTask>^ modifyRequestFuncAsync = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
member GetContentAsync :
type : string *
contentID : string *
token : string *
?userID : Nullable<Guid> *
?parameters : Dictionary<string, string> *
?modifyRequestFuncAsync : Func<IWebProxyContext, ValueTask> *
?cancellationToken : CancellationToken
(* Defaults:
let _userID = defaultArg userID null
let _parameters = defaultArg parameters null
let _modifyRequestFuncAsync = defaultArg modifyRequestFuncAsync null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ContentResult>
- 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.