Class DisplayValueClient
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Syntax
public class DisplayValueClient : ClientBase
Constructors
DisplayValueClient(Contract.IPictureparkServiceSettings, Http.HttpClient)
Declaration
public DisplayValueClient(Contract.IPictureparkServiceSettings configuration, Http.HttpClient httpClient)
Parameters
Picturepark.SDK.V1.Contract.IPictureparkServiceSettings
configuration
|
System.Net.Http.HttpClient
httpClient
|
Properties
JsonSerializerSettings
Declaration
protected Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
Newtonsoft.Json.JsonSerializerSettings
|
ReadResponseAsString
Declaration
public bool ReadResponseAsString { get; set; }
Property Value
System.Boolean
|
Methods
GetStatusAsync(CancellationToken)
Get status
Declaration
public virtual async Task<DisplayValueStatus> GetStatusAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<DisplayValueStatus>
VersionInfo |
Remarks
Get the status of the display values compared to the schema model.
ReadObjectResponseAsync<T>(Http.HttpResponseMessage, IReadOnlyDictionary<String, IEnumerable<String>>, CancellationToken)
Declaration
protected virtual async Task<DisplayValueClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(Http.HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
System.Net.Http.HttpResponseMessage
response
|
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Collections.Generic.IEnumerable<System.String>>
headers
|
System.Threading.CancellationToken
cancellationToken
|
Returns
System.Threading.Tasks.Task<DisplayValueClient.ObjectResponseResult<T>>
|
Type Parameters
T
|
RerenderAsync(CancellationToken)
Re-render the display values
Declaration
public virtual async Task<BusinessProcess> RerenderAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<BusinessProcess>
VersionInfo |
Remarks
The re-rendering only work on those display values that are out of date or not created yet. The process is therefore based on the information returned by the "status" endpoint: if the status is red, the display values of the data
corresponding to the ContentOrLayerSchemaIds and ListSchemaIds are recalculated.
The operation is executed asynchronously and it is not awaited. Call WaitForCompletion to wait for the process to finish.