Class SchemaTransferClient
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Syntax
public class SchemaTransferClient : ClientBase
Constructors
SchemaTransferClient(Contract.IPictureparkServiceSettings, Http.HttpClient)
Declaration
public SchemaTransferClient(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
ImportAsync(SchemaImportRequest, CancellationToken)
Import schemas
Declaration
public virtual async Task<Transfer> ImportAsync(SchemaImportRequest request, CancellationToken cancellationToken = default(CancellationToken))
Parameters
SchemaImportRequest
request
The schema import request. |
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<Transfer>
Transfer |
Remarks
Imports schemas and list items. The file must already be uploaded before calling this endpoint. See Transfer.
The operation is executed asynchronous and it is not awaited. Call WaitForCompletion to wait for the process to finish.
ImportJsonAsync(Stream, String, Nullable<Boolean>, Nullable<Boolean>, CancellationToken)
Import schemas
Declaration
public virtual async Task<BusinessProcess> ImportJsonAsync(Stream body = null, string name = null, bool? allowMissingDependencies = null, bool? importListItems = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.IO.Stream
body
Body |
System.String
name
Name of the schema import |
System.Nullable<System.Boolean>
allowMissingDependencies
Indicates if missing dependencies between imported list items should be allowed |
System.Nullable<System.Boolean>
importListItems
Indicates if list items should be imported |
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>
BusinessProcess |
Remarks
Maximum uploaded file size is 500Mib The operation is executed asynchronously and is not awaited. Call WaitForCompletion to wait for the process to finish.
ReadObjectResponseAsync<T>(Http.HttpResponseMessage, IReadOnlyDictionary<String, IEnumerable<String>>, CancellationToken)
Declaration
protected virtual async Task<SchemaTransferClient.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<SchemaTransferClient.ObjectResponseResult<T>>
|
Type Parameters
T
|