Class MetadataClient
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Syntax
public class MetadataClient : ClientBase
Constructors
MetadataClient(Contract.IPictureparkServiceSettings, Http.HttpClient)
Declaration
public MetadataClient(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<MetadataStatus> 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<MetadataStatus>
The overall status of the contents and list items in comparison to the actual schemas' structure |
Remarks
Get the status of the metadata items (contents and list items) compared to the schema model.
ReadObjectResponseAsync<T>(Http.HttpResponseMessage, IReadOnlyDictionary<String, IEnumerable<String>>, CancellationToken)
Declaration
protected virtual async Task<MetadataClient.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<MetadataClient.ObjectResponseResult<T>>
|
Type Parameters
T
|
UpdateOutdatedAsync(CancellationToken)
Update outdated
Declaration
public virtual async Task<BusinessProcess> UpdateOutdatedAsync(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>
Business process |
Remarks
Update outdated metadata items (contents and list items). The changes to the schemas are enforced: data related to removed fields are deleted; eventual references to removed fields are dropped; calculated values are recalculated;
the ids of the schemas' fields the could not be reused become available again.
The operation can take a long time and it is therefore executed asynchronously and not awaited. Call WaitForCompletion to wait for the process to finish. The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.