StellaOps.Workflow.Transport.Http
HTTP transports of the workflow engine: the http kind calls a configured target over HttpClient, and the endpoint kind resolves a service name, method and path to a configured base URL. Install Installing Stella Ops packagesWorkflow downloads and signaturesnet10.01.0.1-20261118T121708Zdotnet add package StellaOps.
Namespaces
| Namespace | Types |
|---|---|
StellaOps. | 9 |
namespace StellaOps.Workflow.Transport.Http
| Type | Kind | Description |
|---|---|---|
FailureTranslatingWorkflowEndpointTransport | class | The registered IWorkflowEndpointTransport: WorkflowEndpointTransportwith the resilience pipeline’s timeout reported as a TimeoutException, and an unreachable service or an open circuit breaker answered as a failed response. |
FailureTranslatingWorkflowHttpTransport | class | The registered IWorkflowHttpTransport: WorkflowHttpTransportwith the resilience pipeline’s timeout reported as a TimeoutException, and an unreachable target or an open circuit breaker answered as a failed response. |
HttpWorkflowTransportRoutine | class | Dependency-injection routine of the Http transport. |
WorkflowEndpointTransport | class | Calls the HTTP endpoint of a named service ("$type": "endpoint"). |
WorkflowEndpointTransportOptions | class | Base addresses of the services that endpoint calls name, bound from WorkflowEndpointTransportOptions.: Workflow, with optional headers per service. |
WorkflowHttpTargetOptions | class | One HTTP target or service: its base URL and the headers every call sends. |
WorkflowHttpTransport | class | No description. |
WorkflowHttpTransportOptions | class | Targets and retries of http calls (Workflow): Workflow, with optional headers per target. |
WorkflowHttpTransportServiceCollectionExtensions | class | Registers the HTTP and endpoint transports of the Workflow engine. |
class FailureTranslatingWorkflowEndpointTransport
public sealed class FailureTranslatingWorkflowEndpointTransport : IWorkflowEndpointTransport
The registered IWorkflowEndpointTransport: WorkflowEndpointTransportwith the resilience pipeline’s timeout reported as a TimeoutException, and an unreachable service or an open circuit breaker answered as a failed response.
Members
| Member | Kind | Summary |
|---|---|---|
FailureTranslatingWorkflowEndpointTransport( | constructor | The registered IWorkflowEndpointTransport: WorkflowEndpointTransportwith the resilience pipeline’s timeout reported as a TimeoutException, and an unreachable service or an open circuit breaker answered as a failed response. |
ExecuteAsync( | method | Sends the request and returns the response. |
constructor FailureTranslatingWorkflowEndpointTransport(WorkflowEndpointTransport, ILogger<FailureTranslatingWorkflowEndpointTransport>) #
FailureTranslatingWorkflowEndpointTransport(WorkflowEndpointTransport, ILogger<FailureTranslatingWorkflowEndpointTransport>) #public FailureTranslatingWorkflowEndpointTransport(WorkflowEndpointTransport inner, ILogger<FailureTranslatingWorkflowEndpointTransport> logger)
The registered IWorkflowEndpointTransport: WorkflowEndpointTransportwith the resilience pipeline’s timeout reported as a TimeoutException, and an unreachable service or an open circuit breaker answered as a failed response.
method ExecuteAsync(WorkflowEndpointRequest, CancellationToken) #
ExecuteAsync(WorkflowEndpointRequest, CancellationToken) #public Task<WorkflowEndpointResponse> ExecuteAsync(WorkflowEndpointRequest request, CancellationToken cancellationToken = default)
Sends the request and returns the response. A failure, such as a non-success status or a target that is not configured, is a response that did not succeed; a call that does not answer in time raises a TimeoutException.
Parameters
request: The endpoint request.cancellationToken: Cancels the operation.
Returns
The response.
class FailureTranslatingWorkflowHttpTransport
public sealed class FailureTranslatingWorkflowHttpTransport : IWorkflowHttpTransport
The registered IWorkflowHttpTransport: WorkflowHttpTransportwith 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 |
|---|---|---|
FailureTranslatingWorkflowHttpTransport( | constructor | The registered IWorkflowHttpTransport: WorkflowHttpTransportwith 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 request and returns the response. |
constructor FailureTranslatingWorkflowHttpTransport(WorkflowHttpTransport, ILogger<FailureTranslatingWorkflowHttpTransport>) #
FailureTranslatingWorkflowHttpTransport(WorkflowHttpTransport, ILogger<FailureTranslatingWorkflowHttpTransport>) #public FailureTranslatingWorkflowHttpTransport(WorkflowHttpTransport inner, ILogger<FailureTranslatingWorkflowHttpTransport> logger)
The registered IWorkflowHttpTransport: WorkflowHttpTransportwith 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(WorkflowHttpRequest, CancellationToken) #
ExecuteAsync(WorkflowHttpRequest, CancellationToken) #public Task<WorkflowHttpResponse> ExecuteAsync(WorkflowHttpRequest request, CancellationToken cancellationToken = default)
Sends the request and returns the response. A failure, such as a non-success status or a target that is not configured, is a response that did not succeed; a call that does not answer in time raises a TimeoutException.
Parameters
request: The HTTP request.cancellationToken: Cancels the operation.
Returns
The response.
class HttpWorkflowTransportRoutine
public sealed class HttpWorkflowTransportRoutine : IDependencyInjectionRoutine
Dependency-injection routine of the Http transport. A host that loads this assembly as a plug-in discovers the routine; it registers exactly what WorkflowHttpTransportServiceCollectionExtensions.registers.
Members
| Member | Kind | Summary |
|---|---|---|
HttpWorkflowTransportRoutine( | constructor | Creates an instance of Http. |
Register( | method | Registers what WorkflowHttpTransportServiceCollectionExtensions.registers. |
constructor HttpWorkflowTransportRoutine() #
HttpWorkflowTransportRoutine() #public HttpWorkflowTransportRoutine()
Creates an instance of Http.
method Register(IServiceCollection, IConfiguration) #
Register(IServiceCollection, IConfiguration) #public IServiceCollection Register(IServiceCollection services, IConfiguration configuration)
Registers what WorkflowHttpTransportServiceCollectionExtensions.registers.
Parameters
services: The service collection.configuration: The host configuration.
Returns
The same service collection.
class WorkflowEndpointTransport
public sealed class WorkflowEndpointTransport : IWorkflowEndpointTransport
Calls the HTTP endpoint of a named service ("$type": "endpoint"). The service name resolves to a base address through WorkflowEndpointTransportOptions.; the request goes to that address joined with the path, with the declared method, over the same named HTTP client and resilience pipeline as WorkflowHttpTransport.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowEndpointTransport( | constructor | Calls the HTTP endpoint of a named service ("$type": "endpoint"). |
ExecuteAsync( | method | No description. |
constructor WorkflowEndpointTransport(IHttpClientFactory, IOptions<WorkflowEndpointTransportOptions>, ILogger<WorkflowEndpointTransport>) #
WorkflowEndpointTransport(IHttpClientFactory, IOptions<WorkflowEndpointTransportOptions>, ILogger<WorkflowEndpointTransport>) #public WorkflowEndpointTransport(IHttpClientFactory httpClientFactory, IOptions<WorkflowEndpointTransportOptions> options, ILogger<WorkflowEndpointTransport> logger)
Calls the HTTP endpoint of a named service ("$type": "endpoint"). The service name resolves to a base address through WorkflowEndpointTransportOptions.; the request goes to that address joined with the path, with the declared method, over the same named HTTP client and resilience pipeline as WorkflowHttpTransport.
method ExecuteAsync(WorkflowEndpointRequest, CancellationToken) #
ExecuteAsync(WorkflowEndpointRequest, CancellationToken) #public Task<WorkflowEndpointResponse> ExecuteAsync(WorkflowEndpointRequest request, CancellationToken cancellationToken = default)
No description.
class WorkflowEndpointTransportOptions
public sealed class WorkflowEndpointTransportOptions
Base addresses of the services that endpoint calls name, bound from WorkflowEndpointTransportOptions.: Workflow, with optional headers per service. A call that names a service not listed here is refused.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowEndpointTransportOptions( | constructor | Creates an instance of Workflow. |
SectionName | constant | The configuration section the options bind from: Workflow. |
Services | property | The services that endpoint calls name, by name; names compare ignoring case. |
constructor WorkflowEndpointTransportOptions() #
WorkflowEndpointTransportOptions() #public WorkflowEndpointTransportOptions()
Creates an instance of Workflow.
constant SectionName #
SectionName #public const string SectionName = "WorkflowEndpointTransport"
The configuration section the options bind from: Workflow.
property Services #
Services #public IDictionary<string, WorkflowHttpTargetOptions> Services { get; set; }
The services that endpoint calls name, by name; names compare ignoring case.
class WorkflowHttpTargetOptions
public sealed class WorkflowHttpTargetOptions
One HTTP target or service: its base URL and the headers every call sends.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowHttpTargetOptions( | constructor | Creates an instance of Workflow. |
Headers | property | Headers sent with every call to the target. |
Url | property | The base URL of the target. |
constructor WorkflowHttpTargetOptions() #
WorkflowHttpTargetOptions() #public WorkflowHttpTargetOptions()
Creates an instance of Workflow.
property Headers #
Headers #public IDictionary<string, string> Headers { get; set; }
Headers sent with every call to the target.
property Url #
Url #public string Url { get; set; }
The base URL of the target.
class WorkflowHttpTransport
public sealed class WorkflowHttpTransport : IWorkflowHttpTransport
No description.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowHttpTransport( | constructor | No description. |
HttpClientName | constant | No description. |
ExecuteAsync( | method | No description. |
constructor WorkflowHttpTransport(IHttpClientFactory, IOptions<WorkflowHttpTransportOptions>, ILogger<WorkflowHttpTransport>) #
WorkflowHttpTransport(IHttpClientFactory, IOptions<WorkflowHttpTransportOptions>, ILogger<WorkflowHttpTransport>) #public WorkflowHttpTransport(IHttpClientFactory httpClientFactory, IOptions<WorkflowHttpTransportOptions> options, ILogger<WorkflowHttpTransport> logger)
No description.
constant HttpClientName #
HttpClientName #public const string HttpClientName = "workflow-http-transport"
No description.
method ExecuteAsync(WorkflowHttpRequest, CancellationToken) #
ExecuteAsync(WorkflowHttpRequest, CancellationToken) #public Task<WorkflowHttpResponse> ExecuteAsync(WorkflowHttpRequest request, CancellationToken cancellationToken = default)
No description.
class WorkflowHttpTransportOptions
public sealed class WorkflowHttpTransportOptions
Targets and retries of http calls (Workflow): Workflow, with optional headers per target.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowHttpTransportOptions( | 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 http calls name, by name; names compare ignoring case. |
TimeoutSeconds | property | Transport-level timeout in seconds for HTTP calls. |
constructor WorkflowHttpTransportOptions() #
WorkflowHttpTransportOptions() #public WorkflowHttpTransportOptions()
Creates an instance of Workflow.
constant SectionName #
SectionName #public const string SectionName = "WorkflowHttpTransport"
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, WorkflowHttpTargetOptions> Targets { get; set; }
The targets that http calls name, by name; names compare ignoring case. A call to a target not listed here fails.
property TimeoutSeconds #
TimeoutSeconds #public int? TimeoutSeconds { get; set; }
Transport-level timeout in seconds for HTTP calls. Null means no transport-level override; per-step timeout or the engine default (1 hour) applies. When set, overrides the per-step default.
class WorkflowHttpTransportServiceCollectionExtensions
public static class WorkflowHttpTransportServiceCollectionExtensions
Registers the HTTP and endpoint transports of the Workflow engine.
Members
| Member | Kind | Summary |
|---|---|---|
AddWorkflowHttpTransport( | extension method | Registers WorkflowHttpTransportas the IWorkflowHttpTransport, with its named HTTP client and resilience pipeline, from the {Workflow section. |
extension method AddWorkflowHttpTransport(IServiceCollection, IConfiguration) #
AddWorkflowHttpTransport(IServiceCollection, IConfiguration) #public static IServiceCollection AddWorkflowHttpTransport(this IServiceCollection services, IConfiguration configuration)
Registers WorkflowHttpTransportas the IWorkflowHttpTransport, with its named HTTP client and resilience pipeline, from the {Workflow section.