Class BusinessRuleClient
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Syntax
public class BusinessRuleClient : ClientBase
Constructors
BusinessRuleClient(Contract.IPictureparkServiceSettings, Http.HttpClient)
Declaration
public BusinessRuleClient(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
GetConfigurationAsync(CancellationToken)
Get the current business rule configuration
Declaration
public virtual async Task<BusinessRuleConfiguration> GetConfigurationAsync(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<BusinessRuleConfiguration>
BusinessRuleConfiguration |
ReadObjectResponseAsync<T>(Http.HttpResponseMessage, IReadOnlyDictionary<String, IEnumerable<String>>, CancellationToken)
Declaration
protected virtual async Task<BusinessRuleClient.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<BusinessRuleClient.ObjectResponseResult<T>>
|
Type Parameters
T
|
RunScheduleAsync(BusinessRuleSchedule, CancellationToken)
Runs the supplied business rule schedule immediately.
Allows for testing of schedules.
Declaration
public virtual async Task<BusinessProcess> RunScheduleAsync(BusinessRuleSchedule schedule, CancellationToken cancellationToken = default(CancellationToken))
Parameters
BusinessRuleSchedule
schedule
BusinessRuleSchedule |
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 of the metadata operation triggered by the schedule. |
SearchTracesAsync(BusinessRuleTraceLogSearchRequest, CancellationToken)
Searches for trace logs produces by business rule execution.
Declaration
public virtual async Task<BusinessRuleTraceLogSearchResult> SearchTracesAsync(BusinessRuleTraceLogSearchRequest request, CancellationToken cancellationToken = default(CancellationToken))
Parameters
BusinessRuleTraceLogSearchRequest
request
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<BusinessRuleTraceLogSearchResult>
Holds results of trace log search. |
UpdateConfigurationAsync(BusinessRuleConfigurationUpdateRequest, CancellationToken)
Updates the business rule configuration.
Declaration
public virtual async Task<BusinessProcess> UpdateConfigurationAsync(BusinessRuleConfigurationUpdateRequest request, CancellationToken cancellationToken = default(CancellationToken))
Parameters
BusinessRuleConfigurationUpdateRequest
request
Request containing the new configuration. |
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 |