StellaOps.Workflow.Publisher
Publishes the workflow definitions an application bundles to a workflow engine over HTTP. Install Installing Stella Ops packagesWorkflow downloads and signaturesnet10.01.0.1-20261118T121708Zdotnet add package StellaOps.
Namespaces
| Namespace | Types |
|---|---|
StellaOps. | 13 |
namespace StellaOps.Workflow.Publisher
| Type | Kind | Description |
|---|---|---|
BundledWorkflow | record | A single canonical workflow of a plugin assembly: an entry of the generated _, or a workflow the generator listed in Runtime and the provider compiled with the runtime compiler. |
HttpWorkflowDefinitionImportTransport | class | Default transport — sends the import request as an HTTP POST to {Endpoint}{Command. |
IBundledWorkflowProvider | interface | Finds the canonical workflows bundled in plugin assemblies. |
IWorkflowDefinitionImportTransport | interface | Transport used by WorkflowPublisherto deliver a single WorkflowDefinitionImportRequestto the workflow engine’s definition-import endpoint. |
PublishSummary | record | The outcome of one publish run. |
PublisherServiceCollectionExtensions | class | Registers the workflow publisher. |
ReflectionBundledWorkflowProvider | class | Default IBundledWorkflowProvider: scans a provided list of assemblies for the generator-emitted _ type (in the Stella namespace) and reads its Entries field via reflection. |
WorkflowDefinitionRemoteDeployRequest | record | What WorkflowDefinitionRemoteDeployServicedeploys, and where. |
WorkflowDefinitionRemoteDeployResult | record | The outcome of one remote deployment. |
WorkflowDefinitionRemoteDeployService | class | Pushes one exported definition to another workflow server through an IWorkflowDefinitionImportTransport. |
WorkflowPublisher | class | Publishes the canonical workflows bundled in plugin assemblies to a workflow server. |
WorkflowPublisherHostedService | class | Runs WorkflowPublisher.once on IHosted. |
WorkflowPublisherOptions | class | Configuration for the workflow publisher. |
record BundledWorkflow
public sealed record BundledWorkflow
A single canonical workflow of a plugin assembly: an entry of the generated _, or a workflow the generator listed in Runtime and the provider compiled with the runtime compiler. A runtime-compiled definition has no CanonicalContentHash (the workflow service computes its own). CompilationError is set, and the definition empty, when that runtime compilation failed: the workflow has no canonical definition and cannot be published.
Parameters
WorkflowName: The workflow name.WorkflowVersion: The workflow version.DisplayName: The display name.Canonical: The canonical definition, as JSON; empty when the compilation failed.Definition Json CanonicalContentHash: The content hash of the canonical definition; empty for a runtime-compiled definition.SourceAssemblyName: The assembly the workflow comes from.CompilationError: Why the runtime compilation failed; not set when it succeeded.
Members
| Member | Kind | Summary |
|---|---|---|
BundledWorkflow( | constructor | A single canonical workflow of a plugin assembly: an entry of the generated _, or a workflow the generator listed in Runtime and the provider compiled with the runtime compiler. |
CanonicalContentHash | property | The content hash of the canonical definition; empty for a runtime-compiled definition. |
CanonicalDefinitionJson | property | The canonical definition, as JSON; empty when the compilation failed. |
CompilationError | property | Why the runtime compilation failed; not set when it succeeded. |
DisplayName | property | The display name. |
SourceAssemblyName | property | The assembly the workflow comes from. |
WorkflowName | property | The workflow name. |
WorkflowVersion | property | The workflow version. |
constructor BundledWorkflow(string, string, string, string, string, string, string) #
BundledWorkflow(string, string, string, string, string, string, string) #public BundledWorkflow(string WorkflowName, string WorkflowVersion, string DisplayName, string CanonicalDefinitionJson, string CanonicalContentHash, string SourceAssemblyName, string? CompilationError = null)
A single canonical workflow of a plugin assembly: an entry of the generated _, or a workflow the generator listed in Runtime and the provider compiled with the runtime compiler. A runtime-compiled definition has no CanonicalContentHash (the workflow service computes its own). CompilationError is set, and the definition empty, when that runtime compilation failed: the workflow has no canonical definition and cannot be published.
Parameters
WorkflowName: The workflow name.WorkflowVersion: The workflow version.DisplayName: The display name.Canonical: The canonical definition, as JSON; empty when the compilation failed.Definition Json CanonicalContentHash: The content hash of the canonical definition; empty for a runtime-compiled definition.SourceAssemblyName: The assembly the workflow comes from.CompilationError: Why the runtime compilation failed; not set when it succeeded.
property CanonicalContentHash #
CanonicalContentHash #public string CanonicalContentHash { get; init; }
The content hash of the canonical definition; empty for a runtime-compiled definition.
property CanonicalDefinitionJson #
CanonicalDefinitionJson #public string CanonicalDefinitionJson { get; init; }
The canonical definition, as JSON; empty when the compilation failed.
property CompilationError #
CompilationError #public string? CompilationError { get; init; }
Why the runtime compilation failed; not set when it succeeded.
property DisplayName #
DisplayName #public string DisplayName { get; init; }
The display name.
property SourceAssemblyName #
SourceAssemblyName #public string SourceAssemblyName { get; init; }
The assembly the workflow comes from.
property WorkflowName #
WorkflowName #public string WorkflowName { get; init; }
The workflow name.
property WorkflowVersion #
WorkflowVersion #public string WorkflowVersion { get; init; }
The workflow version.
class HttpWorkflowDefinitionImportTransport
public sealed class HttpWorkflowDefinitionImportTransport : IWorkflowDefinitionImportTransport
Default transport — sends the import request as an HTTP POST to {Endpoint}{Command. Hosts that use a different delivery channel (RabbitMQ RPC, gRPC, etc.) should register their own IWorkflowDefinitionImportTransportimplementation before calling AddWorkflowPublisher.
Members
| Member | Kind | Summary |
|---|---|---|
HttpWorkflowDefinitionImportTransport( | constructor | No description. |
ImportAsync( | method | No description. |
constructor HttpWorkflowDefinitionImportTransport(HttpClient) #
HttpWorkflowDefinitionImportTransport(HttpClient) #public HttpWorkflowDefinitionImportTransport(HttpClient httpClient)
No description.
method ImportAsync(WorkflowDefinitionImportRequest, WorkflowPublisherOptions, CancellationToken) #
ImportAsync(WorkflowDefinitionImportRequest, WorkflowPublisherOptions, CancellationToken) #public Task<WorkflowDefinitionImportResponse> ImportAsync(WorkflowDefinitionImportRequest request, WorkflowPublisherOptions options, CancellationToken cancellationToken)
No description.
interface IBundledWorkflowProvider
public interface IBundledWorkflowProvider
Finds the canonical workflows bundled in plugin assemblies.
Members
| Member | Kind | Summary |
|---|---|---|
Enumerate( | method | Returns the bundled workflows. |
method Enumerate() #
Enumerate() #IReadOnlyList<BundledWorkflow> Enumerate()
Returns the bundled workflows.
Returns
The workflows.
interface IWorkflowDefinitionImportTransport
public interface IWorkflowDefinitionImportTransport
Transport used by WorkflowPublisherto deliver a single WorkflowDefinitionImportRequestto the workflow engine’s definition-import endpoint. Hosts that speak another protocol (RabbitMQ RPC, for example) plug their own implementation here; the default HTTP implementation keeps the publisher runnable out of the box.
Members
| Member | Kind | Summary |
|---|---|---|
ImportAsync( | method | Sends an import request to the server the options name. |
method ImportAsync(WorkflowDefinitionImportRequest, WorkflowPublisherOptions, CancellationToken) #
ImportAsync(WorkflowDefinitionImportRequest, WorkflowPublisherOptions, CancellationToken) #Task<WorkflowDefinitionImportResponse> ImportAsync(WorkflowDefinitionImportRequest request, WorkflowPublisherOptions options, CancellationToken cancellationToken)
Sends an import request to the server the options name.
Parameters
request: The import request.options: The server address, command path, token and timeout.cancellationToken: Cancels the operation.
Returns
The server’s answer: whether it imported the definition, and the version.
record PublishSummary
public sealed record PublishSummary
The outcome of one publish run.
Parameters
Total: The bundled workflows found.Imported: The workflows the server imported.HashSkipped: The workflows not imported: the server already had the same definition, or the run was dry.Failed: The workflows that failed after their retries.DisabledReason: Why nothing was published, such asEnabled=false; not set otherwise.
Members
| Member | Kind | Summary |
|---|---|---|
PublishSummary( | constructor | The outcome of one publish run. |
DisabledReason | property | Why nothing was published, such as Enabled=false; not set otherwise. |
Failed | property | The workflows that failed after their retries. |
HashSkipped | property | The workflows not imported: the server already had the same definition, or the run was dry. |
Imported | property | The workflows the server imported. |
Total | property | The bundled workflows found. |
constructor PublishSummary(int, int, int, int, string) #
PublishSummary(int, int, int, int, string) #public PublishSummary(int Total, int Imported, int HashSkipped, int Failed, string? DisabledReason)
The outcome of one publish run.
Parameters
Total: The bundled workflows found.Imported: The workflows the server imported.HashSkipped: The workflows not imported: the server already had the same definition, or the run was dry.Failed: The workflows that failed after their retries.DisabledReason: Why nothing was published, such asEnabled=false; not set otherwise.
property DisabledReason #
DisabledReason #public string? DisabledReason { get; init; }
Why nothing was published, such as Enabled=false; not set otherwise.
property Failed #
Failed #public int Failed { get; init; }
The workflows that failed after their retries.
property HashSkipped #
HashSkipped #public int HashSkipped { get; init; }
The workflows not imported: the server already had the same definition, or the run was dry.
property Imported #
Imported #public int Imported { get; init; }
The workflows the server imported.
property Total #
Total #public int Total { get; init; }
The bundled workflows found.
class PublisherServiceCollectionExtensions
public static class PublisherServiceCollectionExtensions
Registers the workflow publisher.
Members
| Member | Kind | Summary |
|---|---|---|
AddWorkflowPublisher( | extension method | PublisherServiceCollectionExtensions., with WorkflowPublisherOptionsbound from configuration (the section holding the options) instead of the host’s WorkflowPublisherOptions.section. |
AddWorkflowPublisher( | extension method | Registers the workflow publisher plus a WorkflowPublisherHostedServicethat runs the publish-all cycle on startup. |
extension method AddWorkflowPublisher(IServiceCollection, IConfiguration, params Assembly[]) #
AddWorkflowPublisher(IServiceCollection, IConfiguration, params Assembly[]) #public static IServiceCollection AddWorkflowPublisher(this IServiceCollection services, IConfiguration configuration, params Assembly[] pluginAssemblies)
PublisherServiceCollectionExtensions., with WorkflowPublisherOptionsbound from configuration (the section holding the options) instead of the host’s WorkflowPublisherOptions.section.
extension method AddWorkflowPublisher(IServiceCollection, params Assembly[]) #
AddWorkflowPublisher(IServiceCollection, params Assembly[]) #public static IServiceCollection AddWorkflowPublisher(this IServiceCollection services, params Assembly[] pluginAssemblies)
Registers the workflow publisher plus a WorkflowPublisherHostedServicethat runs the publish-all cycle on startup. WorkflowPublisherOptionsare bound from the WorkflowPublisherOptions.section of the host configuration and validated when the host starts: an enabled publisher needs an absolute http or https WorkflowPublisherOptions.(unless it runs dry), a command path starting with ‘/’, a positive timeout and non-negative retries.
The default transport is HttpWorkflowDefinitionImportTransport. Hosts that speak another protocol (RabbitMQ RPC, for example) should register their own IWorkflowDefinitionImportTransportBEFORE calling this method; the publisher registers its transport with TryAddSingleton, which keeps the override in place.
Parameters
services: The service collection to add the publisher to.pluginAssemblies: Assemblies to scan for the generator-emitted registry. Defaults toAppof the current application domain at resolution time if none are provided.Domain. Get Assemblies( )
Returns
The same service collection, for chaining.
class ReflectionBundledWorkflowProvider
public sealed class ReflectionBundledWorkflowProvider : IBundledWorkflowProvider
Default IBundledWorkflowProvider: scans a provided list of assemblies for the generator-emitted _ type (in the Stella namespace) and reads its Entries field via reflection. The workflows the generator could not evaluate at compile time (WF021) are listed in the registry’s Runtime; the provider creates each and compiles it with WorkflowCanonicalDefinitionCompiler. A workflow the runtime compiler rejects is returned with BundledWorkflow.set.
Members
| Member | Kind | Summary |
|---|---|---|
ReflectionBundledWorkflowProvider( | constructor | Creates a provider over assemblies. |
Enumerate( | method | Returns the bundled workflows. |
constructor ReflectionBundledWorkflowProvider(IEnumerable<Assembly>) #
ReflectionBundledWorkflowProvider(IEnumerable<Assembly>) #public ReflectionBundledWorkflowProvider(IEnumerable<Assembly> assemblies)
Creates a provider over assemblies.
Parameters
assemblies: The assemblies to scan.
method Enumerate() #
Enumerate() #public IReadOnlyList<BundledWorkflow> Enumerate()
Returns the bundled workflows.
Returns
The workflows.
record WorkflowDefinitionRemoteDeployRequest
public sealed record WorkflowDefinitionRemoteDeployRequest
What WorkflowDefinitionRemoteDeployServicedeploys, and where.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowDefinitionRemoteDeployRequest( | constructor | Creates an instance of Workflow. |
TargetAuthToken | property | Optional bearer token the target’s import endpoint requires. |
TargetCommandPath | property | Path of the target’s import route, appended to WorkflowDefinitionRemoteDeployRequest.. |
TargetServerUrl | property | The base address of the target workflow server. |
WorkflowName | property | The workflow to deploy. |
WorkflowVersion | property | The version to deploy; the latest when not set. |
constructor WorkflowDefinitionRemoteDeployRequest() #
WorkflowDefinitionRemoteDeployRequest() #public WorkflowDefinitionRemoteDeployRequest()
Creates an instance of Workflow.
property TargetAuthToken #
TargetAuthToken #public string? TargetAuthToken { get; init; }
Optional bearer token the target’s import endpoint requires.
property TargetCommandPath #
TargetCommandPath #public string? TargetCommandPath { get; init; }
Path of the target’s import route, appended to WorkflowDefinitionRemoteDeployRequest.. Null or blank means WorkflowPublisherOptions., the route MapWorkflowEndpoints serves.
property TargetServerUrl #
TargetServerUrl #public required string TargetServerUrl { get; init; }
The base address of the target workflow server.
property WorkflowName #
WorkflowName #public required string WorkflowName { get; init; }
The workflow to deploy.
property WorkflowVersion #
WorkflowVersion #public string? WorkflowVersion { get; init; }
The version to deploy; the latest when not set.
record WorkflowDefinitionRemoteDeployResult
public sealed record WorkflowDefinitionRemoteDeployResult
The outcome of one remote deployment.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowDefinitionRemoteDeployResult( | constructor | Creates an instance of Workflow. |
Error | property | Why the deployment failed, when the export or the push failed. |
Succeeded | property | Whether the target imported the definition; false also when the target already had the same definition. |
TargetServerUrl | property | The target workflow server. |
ValidationIssues | property | The validation issues the target reported. |
WorkflowName | property | The workflow name. |
WorkflowVersion | property | The version the target reports. |
constructor WorkflowDefinitionRemoteDeployResult() #
WorkflowDefinitionRemoteDeployResult() #public WorkflowDefinitionRemoteDeployResult()
Creates an instance of Workflow.
property Error #
Error #public string? Error { get; init; }
Why the deployment failed, when the export or the push failed.
property Succeeded #
Succeeded #public bool Succeeded { get; init; }
Whether the target imported the definition; false also when the target already had the same definition.
property TargetServerUrl #
TargetServerUrl #public string? TargetServerUrl { get; init; }
The target workflow server.
property ValidationIssues #
ValidationIssues #public string[]? ValidationIssues { get; init; }
The validation issues the target reported.
property WorkflowName #
WorkflowName #public string? WorkflowName { get; init; }
The workflow name.
property WorkflowVersion #
WorkflowVersion #public string? WorkflowVersion { get; init; }
The version the target reports.
class WorkflowDefinitionRemoteDeployService
public sealed class WorkflowDefinitionRemoteDeployService
Pushes one exported definition to another workflow server through an IWorkflowDefinitionImportTransport. The caller supplies the export (usually Workflow), so the service does not depend on the engine. Every failure, of the export or of the push, comes back as an unsuccessful result.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowDefinitionRemoteDeployService( | constructor | Pushes one exported definition to another workflow server through an IWorkflowDefinitionImportTransport. |
DeployAsync( | method | Exports the definition and pushes it to the target. |
constructor WorkflowDefinitionRemoteDeployService(IWorkflowDefinitionImportTransport, ILogger) #
WorkflowDefinitionRemoteDeployService(IWorkflowDefinitionImportTransport, ILogger) #public WorkflowDefinitionRemoteDeployService(IWorkflowDefinitionImportTransport transport, ILogger? logger = null)
Pushes one exported definition to another workflow server through an IWorkflowDefinitionImportTransport. The caller supplies the export (usually Workflow), so the service does not depend on the engine. Every failure, of the export or of the push, comes back as an unsuccessful result.
method DeployAsync(WorkflowDefinitionRemoteDeployRequest, Func<CancellationToken, Task<WorkflowDefinitionImportRequest>>, CancellationToken) #
DeployAsync(WorkflowDefinitionRemoteDeployRequest, Func<CancellationToken, Task<WorkflowDefinitionImportRequest>>, CancellationToken) #public Task<WorkflowDefinitionRemoteDeployResult> DeployAsync(WorkflowDefinitionRemoteDeployRequest request, Func<CancellationToken, Task<WorkflowDefinitionImportRequest?>> exportDefinition, CancellationToken cancellationToken = default)
Exports the definition and pushes it to the target.
Parameters
request: What to deploy, and where.exportDefinition: Exports the definition; returnsnullwhen the workflow version does not exist.cancellationToken: Cancels the operation.
Returns
The outcome; a failure is a result that did not succeed, never an exception.
class WorkflowPublisher
public sealed class WorkflowPublisher
Publishes the canonical workflows bundled in plugin assemblies to a workflow server.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowPublisher( | constructor | Creates the publisher. |
PublishAllAsync( | method | Publishes every bundled workflow, retrying each up to WorkflowPublisherOptions.times with a doubling delay. |
constructor WorkflowPublisher(IWorkflowDefinitionImportTransport, IBundledWorkflowProvider, IOptions<WorkflowPublisherOptions>, ILogger<WorkflowPublisher>) #
WorkflowPublisher(IWorkflowDefinitionImportTransport, IBundledWorkflowProvider, IOptions<WorkflowPublisherOptions>, ILogger<WorkflowPublisher>) #public WorkflowPublisher(IWorkflowDefinitionImportTransport transport, IBundledWorkflowProvider provider, IOptions<WorkflowPublisherOptions> options, ILogger<WorkflowPublisher> logger)
Creates the publisher.
Parameters
transport: Sends the import requests.provider: Finds the bundled workflows.options: The publisher options.logger: Receives the diagnostics.
method PublishAllAsync(CancellationToken) #
PublishAllAsync(CancellationToken) #public Task<PublishSummary> PublishAllAsync(CancellationToken cancellationToken)
Publishes every bundled workflow, retrying each up to WorkflowPublisherOptions.times with a doubling delay. A workflow without a canonical definition fails. A failure is counted and the run goes on, unless WorkflowPublisherOptions.is set.
Parameters
cancellationToken: Cancels the operation.
Returns
The counts of the run.
class WorkflowPublisherHostedService
public sealed class WorkflowPublisherHostedService : IHostedService
Runs WorkflowPublisher.once on IHosted. Wired by Add. Consumers using a non-.NET-Hosting bootstrap (e.g., a service initializer) can wire WorkflowPublisherinto their own startup mechanism directly without using this service.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowPublisherHostedService( | constructor | Creates the service. |
StartAsync( | method | Runs one publish run; an error stops the host start. |
StopAsync( | method | Does nothing. |
constructor WorkflowPublisherHostedService(WorkflowPublisher, ILogger<WorkflowPublisherHostedService>) #
WorkflowPublisherHostedService(WorkflowPublisher, ILogger<WorkflowPublisherHostedService>) #public WorkflowPublisherHostedService(WorkflowPublisher publisher, ILogger<WorkflowPublisherHostedService> logger)
Creates the service.
Parameters
publisher: The publisher.logger: Receives the diagnostics.
method StartAsync(CancellationToken) #
StartAsync(CancellationToken) #public Task StartAsync(CancellationToken cancellationToken)
Runs one publish run; an error stops the host start.
Parameters
cancellationToken: Cancels the operation.
Returns
A task that completes when the run ends.
method StopAsync(CancellationToken) #
StopAsync(CancellationToken) #public Task StopAsync(CancellationToken cancellationToken)
Does nothing.
Parameters
cancellationToken: Cancels the operation.
Returns
A completed task.
class WorkflowPublisherOptions
public sealed class WorkflowPublisherOptions
Configuration for the workflow publisher. AddWorkflowPublisher binds it from the WorkflowPublisherOptions.section of the host configuration (or from the section a caller passes) and validates it when the host starts.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowPublisherOptions( | constructor | Creates an instance of Workflow. |
DefaultCommandPath | constant | The import route of the Workflow endpoints (MapWorkflowEndpoints in Stella), the default WorkflowPublisherOptions.. |
SectionName | constant | The configuration section AddWorkflowPublisher binds. |
AuthToken | property | Optional bearer token for the outbound request. |
CommandPath | property | Path of the import route, appended to WorkflowPublisherOptions.. |
DryRun | property | When true the publisher logs what it would POST but does not actually POST. |
Enabled | property | When false the publisher does nothing on startup. |
Endpoint | property | Base URL of the workflow service’s REST gateway (no trailing slash). |
FailOnError | property | If false, publish failures are logged as warnings and the service continues to start up. |
MaxRetriesPerWorkflow | property | Retries of a failed import, per workflow; not negative. |
RetryBaseDelay | property | The delay before the first retry, doubled for each further retry; not negative. |
ServiceName | property | Logical name of the publishing service, sent as the import request’s ImportedBy. |
Timeout | property | The timeout of one import request; positive. |
constructor WorkflowPublisherOptions() #
WorkflowPublisherOptions() #public WorkflowPublisherOptions()
Creates an instance of Workflow.
constant DefaultCommandPath #
DefaultCommandPath #public const string DefaultCommandPath = "/api/workflow/definitions/import"
The import route of the Workflow endpoints (MapWorkflowEndpoints in Stella), the default WorkflowPublisherOptions..
constant SectionName #
SectionName #public const string SectionName = "WorkflowPublisher"
The configuration section AddWorkflowPublisher binds.
property AuthToken #
AuthToken #public string? AuthToken { get; init; }
Optional bearer token for the outbound request. Typically resolved from an external secret store before binding — the publisher treats this as an opaque bearer value.
property CommandPath #
CommandPath #public string CommandPath { get; init; }
Path of the import route, appended to WorkflowPublisherOptions.. Defaults to WorkflowPublisherOptions., the route a host built from MapWorkflowEndpoints serves; set it when the target maps the import elsewhere (for example behind a gateway prefix).
property DryRun #
DryRun #public bool DryRun { get; init; }
When true the publisher logs what it would POST but does not actually POST.
property Enabled #
Enabled #public bool Enabled { get; init; }
When false the publisher does nothing on startup. Handy for per-environment overrides.
property Endpoint #
Endpoint #public string Endpoint { get; init; }
Base URL of the workflow service’s REST gateway (no trailing slash).
property FailOnError #
FailOnError #public bool FailOnError { get; init; }
If false, publish failures are logged as warnings and the service continues to start up. If true, publish failures throw and take the startup down. Default false so a workflow-service outage does not cascade.
property MaxRetriesPerWorkflow #
MaxRetriesPerWorkflow #public int MaxRetriesPerWorkflow { get; init; }
Retries of a failed import, per workflow; not negative. The default is 3.
property RetryBaseDelay #
RetryBaseDelay #public TimeSpan RetryBaseDelay { get; init; }
The delay before the first retry, doubled for each further retry; not negative. The default is 2 seconds.
property ServiceName #
ServiceName #public string? ServiceName { get; init; }
Logical name of the publishing service, sent as the import request’s ImportedBy. A host built from MapWorkflowEndpoints records the authenticated principal as the importer instead.
property Timeout #
Timeout #public TimeSpan Timeout { get; init; }
The timeout of one import request; positive. The default is 30 seconds.