StellaOps.Workflow.Transport.GraphQL
GraphQL transport of the workflow engine: sends GraphQL queries and mutations over HttpClient to configured targets. Install Installing Stella Ops packagesWorkflow downloads and signaturesnet10.01.0.1-20261118T121708Zdotnet add package StellaOps.
Namespaces
| Namespace | Types |
|---|---|
StellaOps. | 6 |
namespace StellaOps.Workflow.Transport.GraphQL
| Type | Kind | Description |
|---|---|---|
FailureTranslatingWorkflowGraphqlTransport | class | The registered IWorkflowGraphqlTransport: WorkflowGraphqlTransportwith the resilience pipeline’s timeout reported as a TimeoutException, and an unreachable target or an open circuit breaker answered as a failed response. |
GraphqlWorkflowTransportRoutine | class | Dependency-injection routine of the GraphQL transport. |
WorkflowGraphqlTargetOptions | class | One GraphQL target: its endpoint URL and the headers every call sends. |
WorkflowGraphqlTransport | class | No description. |
WorkflowGraphqlTransportOptions | class | Targets and retries of graphql calls (Workflow): Workflow, with optional headers per target. |
WorkflowGraphqlTransportServiceCollectionExtensions | class | Registers the GraphQL transport of the Workflow engine. |
class FailureTranslatingWorkflowGraphqlTransport
public sealed class FailureTranslatingWorkflowGraphqlTransport : IWorkflowGraphqlTransport
The registered IWorkflowGraphqlTransport: WorkflowGraphqlTransportwith the resilience pipeline’s timeout reported as a TimeoutException, and an unreachable target or an open circuit breaker answered as a failed response.
Members
| Member | Kind | Summary |
|---|---|---|
FailureTranslatingWorkflowGraphqlTransport( | constructor | The registered IWorkflowGraphqlTransport: WorkflowGraphqlTransportwith the resilience pipeline’s timeout reported as a TimeoutException, and an unreachable target or an open circuit breaker answered as a failed response. |
ExecuteAsync( | method | Sends the query and returns the response. |
constructor FailureTranslatingWorkflowGraphqlTransport(WorkflowGraphqlTransport, ILogger<FailureTranslatingWorkflowGraphqlTransport>) #
FailureTranslatingWorkflowGraphqlTransport(WorkflowGraphqlTransport, ILogger<FailureTranslatingWorkflowGraphqlTransport>) #public FailureTranslatingWorkflowGraphqlTransport(WorkflowGraphqlTransport inner, ILogger<FailureTranslatingWorkflowGraphqlTransport> logger)
The registered IWorkflowGraphqlTransport: WorkflowGraphqlTransportwith the resilience pipeline’s timeout reported as a TimeoutException, and an unreachable target or an open circuit breaker answered as a failed response.
method ExecuteAsync(WorkflowGraphqlRequest, CancellationToken) #
ExecuteAsync(WorkflowGraphqlRequest, CancellationToken) #public Task<WorkflowGraphqlResponse> ExecuteAsync(WorkflowGraphqlRequest request, CancellationToken cancellationToken = default)
Sends the query and returns the response. A failure, such as a non-success status or an errors array in the response, is a response that did not succeed; a call that does not answer in time raises a TimeoutException.
Parameters
request: The GraphQL request.cancellationToken: Cancels the operation.
Returns
The response.
class GraphqlWorkflowTransportRoutine
public sealed class GraphqlWorkflowTransportRoutine : IDependencyInjectionRoutine
Dependency-injection routine of the GraphQL transport. A host that loads this assembly as a plug-in discovers the routine; it registers exactly what WorkflowGraphqlTransportServiceCollectionExtensions.registers.
Members
| Member | Kind | Summary |
|---|---|---|
GraphqlWorkflowTransportRoutine( | constructor | Creates an instance of Graphql. |
Register( | method | Registers what WorkflowGraphqlTransportServiceCollectionExtensions.registers. |
constructor GraphqlWorkflowTransportRoutine() #
GraphqlWorkflowTransportRoutine() #public GraphqlWorkflowTransportRoutine()
Creates an instance of Graphql.
method Register(IServiceCollection, IConfiguration) #
Register(IServiceCollection, IConfiguration) #public IServiceCollection Register(IServiceCollection services, IConfiguration configuration)
Registers what WorkflowGraphqlTransportServiceCollectionExtensions.registers.
Parameters
services: The service collection.configuration: The host configuration.
Returns
The same service collection.
class WorkflowGraphqlTargetOptions
public sealed class WorkflowGraphqlTargetOptions
One GraphQL target: its endpoint URL and the headers every call sends.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowGraphqlTargetOptions( | constructor | Creates an instance of Workflow. |
Headers | property | Headers sent with every call to the target. |
Url | property | The GraphQL endpoint URL of the target. |
constructor WorkflowGraphqlTargetOptions() #
WorkflowGraphqlTargetOptions() #public WorkflowGraphqlTargetOptions()
Creates an instance of Workflow.
property Headers #
Headers #public IDictionary<string, string> Headers { get; init; }
Headers sent with every call to the target.
property Url #
Url #public string Url { get; init; }
The GraphQL endpoint URL of the target.
class WorkflowGraphqlTransport
public sealed class WorkflowGraphqlTransport : IWorkflowGraphqlTransport
No description.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowGraphqlTransport( | constructor | No description. |
HttpClientName | constant | No description. |
ExecuteAsync( | method | No description. |
constructor WorkflowGraphqlTransport(IHttpClientFactory, IOptions<WorkflowGraphqlTransportOptions>, ILogger<WorkflowGraphqlTransport>) #
WorkflowGraphqlTransport(IHttpClientFactory, IOptions<WorkflowGraphqlTransportOptions>, ILogger<WorkflowGraphqlTransport>) #public WorkflowGraphqlTransport(IHttpClientFactory httpClientFactory, IOptions<WorkflowGraphqlTransportOptions> options, ILogger<WorkflowGraphqlTransport> logger)
No description.
constant HttpClientName #
HttpClientName #public const string HttpClientName = "workflow-graphql-transport"
No description.
method ExecuteAsync(WorkflowGraphqlRequest, CancellationToken) #
ExecuteAsync(WorkflowGraphqlRequest, CancellationToken) #public Task<WorkflowGraphqlResponse> ExecuteAsync(WorkflowGraphqlRequest request, CancellationToken cancellationToken = default)
No description.
class WorkflowGraphqlTransportOptions
public sealed class WorkflowGraphqlTransportOptions
Targets and retries of graphql calls (Workflow): Workflow, with optional headers per target.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowGraphqlTransportOptions( | constructor | Creates an instance of Workflow. |
SectionName | constant | The configuration section the options bind from: Workflow. |
RetryCount | property | Retries of a failed attempt in the resilience pipeline. |
Targets | property | The targets that graphql calls name, by name. |
TimeoutSeconds | property | Transport-level timeout in seconds for GraphQL calls. |
constructor WorkflowGraphqlTransportOptions() #
WorkflowGraphqlTransportOptions() #public WorkflowGraphqlTransportOptions()
Creates an instance of Workflow.
constant SectionName #
SectionName #public const string SectionName = "WorkflowGraphqlTransport"
The configuration section the options bind from: Workflow.
property RetryCount #
RetryCount #public int RetryCount { get; set; }
Retries of a failed attempt in the resilience pipeline. The default is 3.
property Targets #
Targets #public IDictionary<string, WorkflowGraphqlTargetOptions> Targets { get; init; }
The targets that graphql calls name, by name.
property TimeoutSeconds #
TimeoutSeconds #public int? TimeoutSeconds { get; set; }
Transport-level timeout in seconds for GraphQL calls. Null means no transport-level override.
class WorkflowGraphqlTransportServiceCollectionExtensions
public static class WorkflowGraphqlTransportServiceCollectionExtensions
Registers the GraphQL transport of the Workflow engine.
Members
| Member | Kind | Summary |
|---|---|---|
AddWorkflowGraphqlTransport( | extension method | Registers WorkflowGraphqlTransportas the IWorkflowGraphqlTransport, with its named HTTP client and resilience pipeline, from the {Workflow section. |
extension method AddWorkflowGraphqlTransport(IServiceCollection, IConfiguration) #
AddWorkflowGraphqlTransport(IServiceCollection, IConfiguration) #public static IServiceCollection AddWorkflowGraphqlTransport(this IServiceCollection services, IConfiguration configuration)
Registers WorkflowGraphqlTransportas the IWorkflowGraphqlTransport, with its named HTTP client and resilience pipeline, from the {Workflow section.