Class DatanormConversionClient
Inheritance
System.Object
DatanormConversionClient
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Dangl.AVACloud.Client.dll
Syntax
public class DatanormConversionClient
Constructors
|
Improve this Doc
View Source
DatanormConversionClient(String, HttpClient)
Declaration
public DatanormConversionClient(string baseUrl, HttpClient httpClient)
Parameters
Type |
Name |
Description |
System.String |
baseUrl |
|
System.Net.Http.HttpClient |
httpClient |
|
Properties
|
Improve this Doc
View Source
BaseUrl
Declaration
public string BaseUrl { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
JsonSerializerSettings
Declaration
protected JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
Type |
Description |
Newtonsoft.Json.JsonSerializerSettings |
|
|
Improve this Doc
View Source
ReadResponseAsString
Declaration
public bool ReadResponseAsString { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
ConvertToAvaAsync(FileParameter, Nullable<Boolean>, Nullable<Boolean>)
Converts Datanorm files to Dangl.AVA projects
Declaration
public virtual Task<ProjectDto> ConvertToAvaAsync(FileParameter datanormFile, bool? removePlainTextLongTexts, bool? removeHtmlLongTexts)
Parameters
Type |
Name |
Description |
FileParameter |
datanormFile |
The input file
|
System.Nullable<System.Boolean> |
removePlainTextLongTexts |
If set to true, plain text long texts will be removed from the output to reduce response sizes
|
System.Nullable<System.Boolean> |
removeHtmlLongTexts |
If set to true, html long texts will be removed from the output to reduce response sizes
|
Returns
Type |
Description |
System.Threading.Tasks.Task<Dangl.AVA.IO.Dto.v1.ProjectDto> |
|
Exceptions
|
Improve this Doc
View Source
ConvertToAvaAsync(FileParameter, Nullable<Boolean>, Nullable<Boolean>, CancellationToken)
Converts Datanorm files to Dangl.AVA projects
Declaration
public virtual async Task<ProjectDto> ConvertToAvaAsync(FileParameter datanormFile, bool? removePlainTextLongTexts, bool? removeHtmlLongTexts, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
FileParameter |
datanormFile |
The input file
|
System.Nullable<System.Boolean> |
removePlainTextLongTexts |
If set to true, plain text long texts will be removed from the output to reduce response sizes
|
System.Nullable<System.Boolean> |
removeHtmlLongTexts |
If set to true, html long texts will be removed from the output to reduce response sizes
|
System.Threading.CancellationToken |
cancellationToken |
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
|
Returns
Type |
Description |
System.Threading.Tasks.Task<Dangl.AVA.IO.Dto.v1.ProjectDto> |
|
Exceptions
|
Improve this Doc
View Source
ConvertToFlatAvaAsync(FileParameter)
Converts Datanorm files to Dangl.AVA projects
Declaration
public virtual Task<FlatAvaProject> ConvertToFlatAvaAsync(FileParameter datanormFile)
Parameters
Returns
Exceptions
|
Improve this Doc
View Source
ConvertToFlatAvaAsync(FileParameter, CancellationToken)
Converts Datanorm files to Dangl.AVA projects
Declaration
public virtual async Task<FlatAvaProject> ConvertToFlatAvaAsync(FileParameter datanormFile, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
FileParameter |
datanormFile |
The input file
|
System.Threading.CancellationToken |
cancellationToken |
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
|
Returns
Exceptions
|
Improve this Doc
View Source
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<String, IEnumerable<String>>, CancellationToken)
Declaration
protected virtual async Task<DatanormConversionClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Net.Http.HttpResponseMessage |
response |
|
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Collections.Generic.IEnumerable<System.String>> |
headers |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type Parameters