Interface IRemoteClusterServiceInvoker
- Namespace
- GroupeIsa.Neos.ClusterCommunication
- Assembly
- GroupeIsa.Neos.ClusterCommunication.dll
Defines client methods for interacting with remote clusters endpoints.
[Obsolete("Use the IRemoteServiceInvoker interface instead.", true, UrlFormat = "https://documentation.neos.groupeisagri.com/articles/communication/service-invocation.html")]
[SuppressMessage("Major Code Smell", "S107:Methods should not have too many parameters", Justification = "Methods are defined with default parameters.")]
public interface IRemoteClusterServiceInvoker
Methods
InvokeAsync(HttpMethod, string, string, object?, IDictionary<string, object?>?, object?, CancellationToken)
Performs service invocation for the cluster identified by clusterName and the specified path.
Task<string> InvokeAsync(HttpMethod httpMethod, string clusterName, string path, object? keyValues = null, IDictionary<string, object?>? parameters = null, object? data = null, CancellationToken cancellationToken = default)
Parameters
httpMethodHttpMethodThe http method of service.
clusterNamestringThe cluster name to invoke the method on.
pathstringThe path of the service.
keyValuesobjectThe key values of the entity view to get.
parametersIDictionary<string, object>A collection of parameters key-value pairs that will be provided to the request.
dataobjectThe data that will be JSON serialized and provided as the request body.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
InvokeAsync<TResponse>(string, string, HttpMethod, string, IDictionary<string, object?>?, CancellationToken)
Performs service invocation for the cluster identified by clusterName and the specified path.
Task<TResponse?> InvokeAsync<TResponse>(string clusterName, string apiVersion, HttpMethod httpMethod, string path, IDictionary<string, object?>? parameters = null, CancellationToken cancellationToken = default)
Parameters
clusterNamestringThe cluster name to invoke the method on.
apiVersionstringThe version of the
REST APIto invoke.httpMethodHttpMethodThe http method of service.
pathstringThe path of the service.
parametersIDictionary<string, object>A collection of parameters key-value pairs that will be provided to the request.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
- Task<TResponse>
A Task<TResult> that will return when the operation has completed.
Type Parameters
TResponseThe type of the data that will be JSON deserialized from the response body.
InvokeAsync<TRequest, TResponse>(string, string, HttpMethod, string, TRequest, IDictionary<string, object?>?, CancellationToken)
Performs service invocation for the cluster identified by clusterName and the specified path.
Task<TResponse?> InvokeAsync<TRequest, TResponse>(string clusterName, string apiVersion, HttpMethod httpMethod, string path, TRequest data, IDictionary<string, object?>? parameters = null, CancellationToken cancellationToken = default)
Parameters
clusterNamestringThe cluster name to invoke the method on.
apiVersionstringThe version of the
REST APIto invoke.httpMethodHttpMethodThe http method of service.
pathstringThe path of the service.
dataTRequestThe data that will be JSON serialized and provided as the request body.
parametersIDictionary<string, object>A collection of parameters key-value pairs that will be provided to the request.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
- Task<TResponse>
A Task<TResult> that will return when the operation has completed.
Type Parameters
TRequestThe type of the data that will be JSON serialized and provided as the request body.
TResponseThe type of the data that will be JSON deserialized from the response body.
InvokeDeleteAsync(string, string, string, object, IDictionary<string, object?>?, CancellationToken)
Performs service invocation for the cluster identified by clusterName and invokes the resource
specified by entityViewName with the DELETE HTTP method and an empty request body.
Task InvokeDeleteAsync(string clusterName, string apiVersion, string entityViewName, object keyValues, IDictionary<string, object?>? parameters = null, CancellationToken cancellationToken = default)
Parameters
clusterNamestringThe cluster name to invoke the method on.
apiVersionstringThe version of the
REST APIto invoke.entityViewNamestringThe name of the entity view to invoke.
keyValuesobjectThe key values of the entity view to get.
parametersIDictionary<string, object>A collection of parameters key-value pairs that will be provided to the request.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
- Task
A Task<TResult> that will return when the operation has completed.
InvokeGetAllAsync<TResponse>(string, string, string, int?, int?, string?, string?, IDictionary<string, object?>?, CancellationToken)
Performs service invocation for the cluster identified by clusterName and invokes the resource
specified by entityViewName with the GET HTTP method and an empty request body.
Task<TResponse?> InvokeGetAllAsync<TResponse>(string clusterName, string apiVersion, string entityViewName, int? skip = null, int? top = null, string? filter = null, string? orderBy = null, IDictionary<string, object?>? parameters = null, CancellationToken cancellationToken = default)
Parameters
clusterNamestringThe cluster name to invoke the method on.
apiVersionstringThe version of the
REST APIto invoke.entityViewNamestringThe name of the entity view to invoke.
skipint?The number of elements to skip before returning the remaining elements.
topint?The number of elements to return from the start of a sequence.
filterstringThe filter used in OData syntax to limit the results that are returned by the request.
orderBystringThe list of fields used in OData syntax to sort the elements based on in ascending or decending order.
parametersIDictionary<string, object>A collection of parameters key-value pairs that will be provided to the request.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
- Task<TResponse>
A Task<TResult> that will return when the operation has completed.
Type Parameters
TResponseThe type of the data that will be JSON deserialized from the response body.
InvokeGetAsync<TResponse>(string, string, string, object, IDictionary<string, object?>?, CancellationToken)
Performs service invocation for the cluster identified by clusterName and invokes the resource
specified by entityViewName with the GET HTTP method and an empty request body.
Task<TResponse?> InvokeGetAsync<TResponse>(string clusterName, string apiVersion, string entityViewName, object keyValues, IDictionary<string, object?>? parameters = null, CancellationToken cancellationToken = default)
Parameters
clusterNamestringThe cluster name to invoke the method on.
apiVersionstringThe version of the
REST APIto invoke.entityViewNamestringThe name of the entity view to invoke.
keyValuesobjectThe key values of the entity view to get.
parametersIDictionary<string, object>A collection of parameters key-value pairs that will be provided to the request.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
- Task<TResponse>
A Task<TResult> that will return when the operation has completed.
Type Parameters
TResponseThe type of the data that will be JSON deserialized from the response body.
InvokeMethodGetAsync<TResponse>(string, string, string, IDictionary<string, object?>?, CancellationToken)
Performs service invocation for the cluster identified by clusterName and invokes the server
method specified by methodName with the GET HTTP method and an empty request body.
Task<TResponse?> InvokeMethodGetAsync<TResponse>(string clusterName, string apiVersion, string methodName, IDictionary<string, object?>? arguments = null, CancellationToken cancellationToken = default)
Parameters
clusterNamestringThe cluster name to invoke the method on.
apiVersionstringThe version of the
REST APIto invoke.methodNamestringThe name of the server method to invoke.
argumentsIDictionary<string, object>A collection of arguments key-value pairs that will be provided to the server method.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
- Task<TResponse>
A Task<TResult> that will return when the operation has completed.
Type Parameters
TResponseThe type of the data that will be JSON deserialized from the response body.
InvokeMethodPostAsync(string, string, string, Dictionary<string, object?>?, CancellationToken)
Performs service invocation for the cluster idenfied by clusterName and invokes the server
method specified by methodName with the POST HTTP method and an empty request body.
Task InvokeMethodPostAsync(string clusterName, string apiVersion, string methodName, Dictionary<string, object?>? arguments = null, CancellationToken cancellationToken = default)
Parameters
clusterNamestringThe cluster name to invoke the method on.
apiVersionstringThe version of the
REST APIto invoke.methodNamestringThe name of the server method to invoke.
argumentsDictionary<string, object>A collection of arguments key-value pairs that will be provided to the server method.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
InvokeMethodPostAsync<TResponse>(string, string, string, Dictionary<string, object?>?, CancellationToken)
Perform service invocation for the cluster identified by clusterName and invokes the server
method specified by methodName with the POST HTTP method and an empty request body.
Task<TResponse?> InvokeMethodPostAsync<TResponse>(string clusterName, string apiVersion, string methodName, Dictionary<string, object?>? arguments = null, CancellationToken cancellationToken = default)
Parameters
clusterNamestringThe cluster name to invoke the method on.
apiVersionstringThe version of the
REST APIto invoke.methodNamestringThe name of the server method to invoke.
argumentsDictionary<string, object>A collection of arguments key-value pairs that will be provided to the server method.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
- Task<TResponse>
A Task<TResult> that will return when the operation has completed.
Type Parameters
TResponseThe type of the data that will be JSON deserialized from the response body.
InvokeOpenApiAsync(string, string, CancellationToken?)
Performs service invocation for the cluster identified by clusterName and invoke swagger json.
Task<string> InvokeOpenApiAsync(string clusterName, string apiVersion, CancellationToken? cancellationToken = null)
Parameters
clusterNamestringThe cluster name to invoke the method on.
apiVersionstringThe version of the
REST APIto invoke.cancellationTokenCancellationToken?A CancellationToken that can be used to cancel the operation.
Returns
InvokePostAsync<TRequest, TResponse>(string, string, string, TRequest, IDictionary<string, object?>?, CancellationToken)
Performs service invocation for the cluster idenfied by clusterName and invokes the resource
specified by entityViewName with the POST HTTP method and a JSON serialized request body
specified by data.
Task<TResponse?> InvokePostAsync<TRequest, TResponse>(string clusterName, string apiVersion, string entityViewName, TRequest data, IDictionary<string, object?>? parameters = null, CancellationToken cancellationToken = default)
Parameters
clusterNamestringThe cluster name to invoke the method on.
apiVersionstringThe version of the
REST APIto invoke.entityViewNamestringThe name of the entity view to invoke.
dataTRequestThe data that will be JSON serialized and provided as the request body.
parametersIDictionary<string, object>A collection of parameters key-value pairs that will be provided to the request.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
- Task<TResponse>
A Task<TResult> that will return when the operation has completed.
Type Parameters
TRequestThe type of the data that will be JSON serialized and provided as the request body.
TResponseThe type of the data that will be JSON deserialized from the response body.
InvokePutAsync<TRequest, TResponse>(string, string, string, object, TRequest, IDictionary<string, object?>?, CancellationToken)
Performs service invocation for the cluster identified by clusterName and invokes the resource
specified by entityViewName with the PUT HTTP method and a JSON serialized request body
specified by data.
Task<TResponse?> InvokePutAsync<TRequest, TResponse>(string clusterName, string apiVersion, string entityViewName, object keyValues, TRequest data, IDictionary<string, object?>? parameters = null, CancellationToken cancellationToken = default)
Parameters
clusterNamestringThe cluster name to invoke the method on.
apiVersionstringThe version of the
REST APIto invoke.entityViewNamestringThe name of the entity view to invoke.
keyValuesobjectThe key values of the entity view to get.
dataTRequestThe data that will be JSON serialized and provided as the request body.
parametersIDictionary<string, object>A collection of parameters key-value pairs that will be provided to the request.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.
Returns
- Task<TResponse>
A Task<TResult> that will return when the operation has completed.
Type Parameters
TRequestThe type of the data that will be JSON serialized and provided as the request body.
TResponseThe type of the data that will be JSON deserialized from the response body.
RetrieveBinaryImageAsync(string, string, string?, HttpMethod?, IDictionary<string, object?>?, CancellationToken)
Performs service invocation for the cluster identified by clusterName and the specified path.
Task<byte[]?> RetrieveBinaryImageAsync(string clusterName, string path, string? apiVersion = null, HttpMethod? httpMethod = null, IDictionary<string, object?>? parameters = null, CancellationToken cancellationToken = default)
Parameters
clusterNamestringThe cluster name to invoke the method on.
pathstringThe path of the service.
apiVersionstringThe version of the
REST APIto invoke (defaults to "v1").httpMethodHttpMethodThe http method of service (defaults to
System.Net.Http.HttpMethod.Get).parametersIDictionary<string, object>A collection of parameters key-value pairs that will be provided to the request.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the operation.