Class ServiceClient
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Syntax
[GeneratedCode("NSwag", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
public class ServiceClient : ClientBase, IServiceClient
Constructors
ServiceClient(ICloudManagerServiceSettings, HttpClient)
Declaration
public ServiceClient(ICloudManagerServiceSettings configuration, HttpClient httpClient)
Parameters
| ICloudManagerServiceSettings configuration |
| HttpClient httpClient |
Properties
JsonSerializerSettings
Declaration
protected JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
| JsonSerializerSettings |
ReadResponseAsString
Methods
DeleteNodeInfosAsync(CancellationToken)
Declaration
public virtual Task DeleteNodeInfosAsync(CancellationToken cancellationToken = default)
Parameters
|
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Task |
Implements
Exceptions
|
ApiException
A server side error occurred. |
|
PictureparkValidationException
Validation exception |
|
PictureparkForbiddenException
Forbidden |
|
PictureparkConflictException
Version conflict |
|
PictureparkTooManyRequestsException
Too many requests |
|
PictureparkException
Internal server error |
|
PictureparkException
Entity not found |
|
PictureparkNotFoundException
Entity not found |
DumpCachesAsync(CancellationToken)
Declaration
public virtual Task DumpCachesAsync(CancellationToken cancellationToken = default)
Parameters
|
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Task |
Implements
Exceptions
|
ApiException
A server side error occurred. |
|
PictureparkValidationException
Validation exception |
|
PictureparkForbiddenException
Forbidden |
|
PictureparkConflictException
Version conflict |
|
PictureparkTooManyRequestsException
Too many requests |
|
PictureparkException
Internal server error |
|
PictureparkException
Entity not found |
|
PictureparkNotFoundException
Entity not found |
EnableLoggingDiagnosticsAsync(bool?, string, CancellationToken)
Declaration
public virtual Task EnableLoggingDiagnosticsAsync(bool? enable = null, string serviceName = null, CancellationToken cancellationToken = default)
Parameters
| bool? enable |
| string serviceName |
|
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Task |
Implements
Exceptions
|
ApiException
A server side error occurred. |
|
PictureparkValidationException
Validation exception |
|
PictureparkForbiddenException
Forbidden |
|
PictureparkConflictException
Version conflict |
|
PictureparkTooManyRequestsException
Too many requests |
|
PictureparkException
Internal server error |
|
PictureparkException
Entity not found |
|
PictureparkNotFoundException
Entity not found |
GetActiveNodesAsync(CancellationToken)
Declaration
public virtual Task<ICollection<NodeInfo>> GetActiveNodesAsync(CancellationToken cancellationToken = default)
Parameters
|
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Task<ICollection<NodeInfo>> |
Implements
Exceptions
|
ApiException
A server side error occurred. |
|
PictureparkValidationException
Validation exception |
|
PictureparkForbiddenException
Forbidden |
|
PictureparkConflictException
Version conflict |
|
PictureparkTooManyRequestsException
Too many requests |
|
PictureparkException
Internal server error |
|
PictureparkException
Entity not found |
|
PictureparkNotFoundException
Entity not found |
InvalidateAllCachesAsync(CancellationToken)
Declaration
public virtual Task InvalidateAllCachesAsync(CancellationToken cancellationToken = default)
Parameters
|
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Task |
Implements
Exceptions
|
ApiException
A server side error occurred. |
|
PictureparkValidationException
Validation exception |
|
PictureparkForbiddenException
Forbidden |
|
PictureparkConflictException
Version conflict |
|
PictureparkTooManyRequestsException
Too many requests |
|
PictureparkException
Internal server error |
|
PictureparkException
Entity not found |
|
PictureparkNotFoundException
Entity not found |
PingActiveNodesAsync(CancellationToken)
Declaration
public virtual Task PingActiveNodesAsync(CancellationToken cancellationToken = default)
Parameters
|
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Task |
Implements
Exceptions
|
ApiException
A server side error occurred. |
|
PictureparkValidationException
Validation exception |
|
PictureparkForbiddenException
Forbidden |
|
PictureparkConflictException
Version conflict |
|
PictureparkTooManyRequestsException
Too many requests |
|
PictureparkException
Internal server error |
|
PictureparkException
Entity not found |
|
PictureparkNotFoundException
Entity not found |
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
Declaration
protected virtual Task<ServiceClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
| HttpResponseMessage response |
| IReadOnlyDictionary<string, IEnumerable<string>> headers |
| CancellationToken cancellationToken |
Returns
| Task<ServiceClient.ObjectResponseResult<T>> |
Type Parameters
| T |
RecycleElasticClientsAsync(CancellationToken)
Declaration
public virtual Task RecycleElasticClientsAsync(CancellationToken cancellationToken = default)
Parameters
|
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Task |
Implements
Exceptions
|
ApiException
A server side error occurred. |
|
PictureparkValidationException
Validation exception |
|
PictureparkForbiddenException
Forbidden |
|
PictureparkConflictException
Version conflict |
|
PictureparkTooManyRequestsException
Too many requests |
|
PictureparkException
Internal server error |
|
PictureparkException
Entity not found |
|
PictureparkNotFoundException
Entity not found |
RestartAllAsync(CancellationToken)
Declaration
public virtual Task RestartAllAsync(CancellationToken cancellationToken = default)
Parameters
|
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Task |
Implements
Exceptions
|
ApiException
A server side error occurred. |
|
PictureparkValidationException
Validation exception |
|
PictureparkForbiddenException
Forbidden |
|
PictureparkConflictException
Version conflict |
|
PictureparkTooManyRequestsException
Too many requests |
|
PictureparkException
Internal server error |
|
PictureparkException
Entity not found |
|
PictureparkNotFoundException
Entity not found |
RestartAsync(string, string, CancellationToken)
Declaration
public virtual Task RestartAsync(string serviceName, string nodeId = null, CancellationToken cancellationToken = default)
Parameters
| string serviceName |
| string nodeId |
|
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Task |
Implements
Exceptions
|
ApiException
A server side error occurred. |
|
PictureparkValidationException
Validation exception |
|
PictureparkForbiddenException
Forbidden |
|
PictureparkConflictException
Version conflict |
|
PictureparkTooManyRequestsException
Too many requests |
|
PictureparkException
Internal server error |
|
PictureparkException
Entity not found |
|
PictureparkNotFoundException
Entity not found |
SetLogLevelAsync(SetServiceLogLevelRequest, CancellationToken)
Declaration
public virtual Task SetLogLevelAsync(SetServiceLogLevelRequest request, CancellationToken cancellationToken = default)
Parameters
| SetServiceLogLevelRequest request |
|
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Task |
Implements
Exceptions
|
ApiException
A server side error occurred. |
|
PictureparkValidationException
Validation exception |
|
PictureparkForbiddenException
Forbidden |
|
PictureparkConflictException
Version conflict |
|
PictureparkTooManyRequestsException
Too many requests |
|
PictureparkException
Internal server error |
|
PictureparkException
Entity not found |
|
PictureparkNotFoundException
Entity not found |
ShutdownAllAsync(CancellationToken)
Declaration
public virtual Task ShutdownAllAsync(CancellationToken cancellationToken = default)
Parameters
|
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Task |
Implements
Exceptions
|
ApiException
A server side error occurred. |
|
PictureparkValidationException
Validation exception |
|
PictureparkForbiddenException
Forbidden |
|
PictureparkConflictException
Version conflict |
|
PictureparkTooManyRequestsException
Too many requests |
|
PictureparkException
Internal server error |
|
PictureparkException
Entity not found |
|
PictureparkNotFoundException
Entity not found |
ShutdownAsync(string, string, CancellationToken)
Declaration
public virtual Task ShutdownAsync(string serviceName, string nodeId = null, CancellationToken cancellationToken = default)
Parameters
| string serviceName |
| string nodeId |
|
CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Task |
Implements
Exceptions
|
ApiException
A server side error occurred. |
|
PictureparkValidationException
Validation exception |
|
PictureparkForbiddenException
Forbidden |
|
PictureparkConflictException
Version conflict |
|
PictureparkTooManyRequestsException
Too many requests |
|
PictureparkException
Internal server error |
|
PictureparkException
Entity not found |
|
PictureparkNotFoundException
Entity not found |