Interface IWebMClient
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
Provides additional features to the default SDK, specifically for HTTP and REST.
Namespace: Stylelabs.M.Sdk.WebClient
Assembly: Stylelabs.M.Sdk.WebClient.dll
Syntax
Properties
Api
Contains functionality to get REST API information. It will also check for compatibility with the server REST API.
Declaration
Property Value
| Type | Description |
|---|---|
| IApiClient |
ImpersonatedUsername
The name of the user being impersonated. This is null when impersonation is not active.
Declaration
Property Value
| Type | Description |
|---|---|
| System.String |
LinkHelper
Contains functionality to build and parse links.
Declaration
Property Value
| Type | Description |
|---|---|
| ILinkHelper |
Package
Contains functionality to import and export packages.
Declaration
Property Value
| Type | Description |
|---|---|
| IPackageClient |
Raw
Contains functionality to do custom HTTP requests.
Declaration
Property Value
| Type | Description |
|---|---|
| IRawClient |
Uploads
Contains functionality for file uploads.
Declaration
Property Value
| Type | Description |
|---|---|
| IUploadClient |
Methods
SetDelegatingHandlerFactory(IDelegatingHandlerFactory)
Sets a factory that will be used to create a on the first request per specific protocol and host. The handler will be reused for the next requests.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IDelegatingHandlerFactory | factory |
SetHttpClientFactory(IHttpClientFactory)
Sets a factory that will be used to create a on the first request per specific protocol and host. The client will be reused for the next requests.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IHttpClientFactory | factory |
SetKnownSSoRedirects(IEnumerable<Uri>)
Set known SSO redirect URls that must trigger security token refreshes.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Uri> | ssoRedirects |
SSO URls |
TestConnectionAsync()
Tests the following things:
- if the client can successfully connect to the server
- if the SDK and server are compatible
- if the credentials are correct This will throw exceptions if it failed to connect. The exception type depends on what failed.
Declaration
Returns
| Type | Description |
|---|---|
| Task |
Events
RefreshTokenReceived
Triggered when a new refresh-token has been received.
Declaration
Event Type
| Type | Description |
|---|---|
| EventHandler<RefreshTokenReceivedEventArgs> |
RequestCreated
Triggered when a web-request has been created.
Declaration
Event Type
| Type | Description |
|---|---|
| EventHandler<RequestCreatedEventArgs> |