StellaOps.Workflow.Publisher

Publishes the workflow definitions an application bundles to a workflow engine over HTTP.

library
Component
Workflow
Licence
BUSL-1.1 (Workflow licence)
Target framework
net10.0
Latest release
1.0.1-20261118T121708Z

Install

dotnet add package StellaOps.Workflow.Publisher --version 1.0.1-20261118T121708Z

Namespaces

NamespaceTypes
StellaOps.Workflow.Publisher13

namespace StellaOps.Workflow.Publisher

TypeKindDescription
BundledWorkflowrecordA single canonical workflow of a plugin assembly: an entry of the generated _BundledCanonicalWorkflowRegistry.Entries, or a workflow the generator listed in RuntimeCompiledWorkflowTypes and the provider compiled with the runtime compiler.
HttpWorkflowDefinitionImportTransportclassDefault transport — sends the import request as an HTTP POST to {Endpoint}{CommandPath}.
IBundledWorkflowProviderinterfaceFinds the canonical workflows bundled in plugin assemblies.
IWorkflowDefinitionImportTransportinterfaceTransport used by WorkflowPublisherto deliver a single WorkflowDefinitionImportRequestto the workflow engine’s definition-import endpoint.
PublishSummaryrecordThe outcome of one publish run.
PublisherServiceCollectionExtensionsclassRegisters the workflow publisher.
ReflectionBundledWorkflowProviderclassDefault IBundledWorkflowProvider: scans a provided list of assemblies for the generator-emitted _BundledCanonicalWorkflowRegistry type (in the StellaOps.Workflow.Generated namespace) and reads its Entries field via reflection.
WorkflowDefinitionRemoteDeployRequestrecordWhat WorkflowDefinitionRemoteDeployServicedeploys, and where.
WorkflowDefinitionRemoteDeployResultrecordThe outcome of one remote deployment.
WorkflowDefinitionRemoteDeployServiceclassPushes one exported definition to another workflow server through an IWorkflowDefinitionImportTransport.
WorkflowPublisherclassPublishes the canonical workflows bundled in plugin assemblies to a workflow server.
WorkflowPublisherHostedServiceclassRuns WorkflowPublisher.PublishAllAsync(CancellationToken)once on IHostedService.StartAsync(CancellationToken).
WorkflowPublisherOptionsclassConfiguration for the workflow publisher.

record BundledWorkflow

public sealed record BundledWorkflow

A single canonical workflow of a plugin assembly: an entry of the generated _BundledCanonicalWorkflowRegistry.Entries, or a workflow the generator listed in RuntimeCompiledWorkflowTypes 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.
  • CanonicalDefinitionJson: The canonical definition, as JSON; empty when the compilation failed.
  • 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

MemberKindSummary
BundledWorkflow(string, string, string, string, string, string, string)constructorA single canonical workflow of a plugin assembly: an entry of the generated _BundledCanonicalWorkflowRegistry.Entries, or a workflow the generator listed in RuntimeCompiledWorkflowTypes and the provider compiled with the runtime compiler.
CanonicalContentHashpropertyThe content hash of the canonical definition; empty for a runtime-compiled definition.
CanonicalDefinitionJsonpropertyThe canonical definition, as JSON; empty when the compilation failed.
CompilationErrorpropertyWhy the runtime compilation failed; not set when it succeeded.
DisplayNamepropertyThe display name.
SourceAssemblyNamepropertyThe assembly the workflow comes from.
WorkflowNamepropertyThe workflow name.
WorkflowVersionpropertyThe workflow version.

constructor 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 _BundledCanonicalWorkflowRegistry.Entries, or a workflow the generator listed in RuntimeCompiledWorkflowTypes 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.
  • CanonicalDefinitionJson: The canonical definition, as JSON; empty when the compilation failed.
  • 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 #

public string CanonicalContentHash { get; init; }

The content hash of the canonical definition; empty for a runtime-compiled definition.

property CanonicalDefinitionJson #

public string CanonicalDefinitionJson { get; init; }

The canonical definition, as JSON; empty when the compilation failed.

property CompilationError #

public string? CompilationError { get; init; }

Why the runtime compilation failed; not set when it succeeded.

property DisplayName #

public string DisplayName { get; init; }

The display name.

property SourceAssemblyName #

public string SourceAssemblyName { get; init; }

The assembly the workflow comes from.

property WorkflowName #

public string WorkflowName { get; init; }

The workflow name.

property 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}{CommandPath}. Hosts that use a different delivery channel (RabbitMQ RPC, gRPC, etc.) should register their own IWorkflowDefinitionImportTransportimplementation before calling AddWorkflowPublisher.

Members

MemberKindSummary
HttpWorkflowDefinitionImportTransport(HttpClient)constructorNo description.
ImportAsync(WorkflowDefinitionImportRequest, WorkflowPublisherOptions, CancellationToken)methodNo description.

constructor HttpWorkflowDefinitionImportTransport(HttpClient) #

public HttpWorkflowDefinitionImportTransport(HttpClient httpClient)

No description.

method 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

MemberKindSummary
Enumerate()methodReturns the bundled workflows.

method 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

MemberKindSummary
ImportAsync(WorkflowDefinitionImportRequest, WorkflowPublisherOptions, CancellationToken)methodSends an import request to the server the options name.

method 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 as Enabled=false; not set otherwise.

Members

MemberKindSummary
PublishSummary(int, int, int, int, string)constructorThe outcome of one publish run.
DisabledReasonpropertyWhy nothing was published, such as Enabled=false; not set otherwise.
FailedpropertyThe workflows that failed after their retries.
HashSkippedpropertyThe workflows not imported: the server already had the same definition, or the run was dry.
ImportedpropertyThe workflows the server imported.
TotalpropertyThe bundled workflows found.

constructor 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 as Enabled=false; not set otherwise.

property DisabledReason #

public string? DisabledReason { get; init; }

Why nothing was published, such as Enabled=false; not set otherwise.

property Failed #

public int Failed { get; init; }

The workflows that failed after their retries.

property HashSkipped #

public int HashSkipped { get; init; }

The workflows not imported: the server already had the same definition, or the run was dry.

property Imported #

public int Imported { get; init; }

The workflows the server imported.

property Total #

public int Total { get; init; }

The bundled workflows found.

class PublisherServiceCollectionExtensions

public static class PublisherServiceCollectionExtensions

Registers the workflow publisher.

Members

MemberKindSummary
AddWorkflowPublisher(IServiceCollection, IConfiguration, params Assembly[])extension methodPublisherServiceCollectionExtensions.AddWorkflowPublisher(IServiceCollection, params Assembly[]), with WorkflowPublisherOptionsbound from configuration (the section holding the options) instead of the host’s WorkflowPublisherOptions.SectionNamesection.
AddWorkflowPublisher(IServiceCollection, params Assembly[])extension methodRegisters the workflow publisher plus a WorkflowPublisherHostedServicethat runs the publish-all cycle on startup.

extension method AddWorkflowPublisher(IServiceCollection, IConfiguration, params Assembly[]) #

public static IServiceCollection AddWorkflowPublisher(this IServiceCollection services, IConfiguration configuration, params Assembly[] pluginAssemblies)

PublisherServiceCollectionExtensions.AddWorkflowPublisher(IServiceCollection, params Assembly[]), with WorkflowPublisherOptionsbound from configuration (the section holding the options) instead of the host’s WorkflowPublisherOptions.SectionNamesection.

extension method 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.SectionNamesection of the host configuration and validated when the host starts: an enabled publisher needs an absolute http or https WorkflowPublisherOptions.Endpoint(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 to AppDomain.GetAssemblies() of the current application domain at resolution time if none are provided.

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 _BundledCanonicalWorkflowRegistry type (in the StellaOps.Workflow.Generated 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 RuntimeCompiledWorkflowTypes; the provider creates each and compiles it with WorkflowCanonicalDefinitionCompiler. A workflow the runtime compiler rejects is returned with BundledWorkflow.CompilationErrorset.

Members

MemberKindSummary
ReflectionBundledWorkflowProvider(IEnumerable<Assembly>)constructorCreates a provider over assemblies.
Enumerate()methodReturns the bundled workflows.

constructor ReflectionBundledWorkflowProvider(IEnumerable<Assembly>) #

public ReflectionBundledWorkflowProvider(IEnumerable<Assembly> assemblies)

Creates a provider over assemblies.

Parameters

  • assemblies: The assemblies to scan.

method Enumerate() #

public IReadOnlyList<BundledWorkflow> Enumerate()

Returns the bundled workflows.

Returns

The workflows.

record WorkflowDefinitionRemoteDeployRequest

public sealed record WorkflowDefinitionRemoteDeployRequest

What WorkflowDefinitionRemoteDeployServicedeploys, and where.

Members

MemberKindSummary
WorkflowDefinitionRemoteDeployRequest()constructorCreates an instance of WorkflowDefinitionRemoteDeployRequest.
TargetAuthTokenpropertyOptional bearer token the target’s import endpoint requires.
TargetCommandPathpropertyPath of the target’s import route, appended to WorkflowDefinitionRemoteDeployRequest.TargetServerUrl.
TargetServerUrlpropertyThe base address of the target workflow server.
WorkflowNamepropertyThe workflow to deploy.
WorkflowVersionpropertyThe version to deploy; the latest when not set.

constructor WorkflowDefinitionRemoteDeployRequest() #

public WorkflowDefinitionRemoteDeployRequest()

Creates an instance of WorkflowDefinitionRemoteDeployRequest.

property TargetAuthToken #

public string? TargetAuthToken { get; init; }

Optional bearer token the target’s import endpoint requires.

property TargetCommandPath #

public string? TargetCommandPath { get; init; }

Path of the target’s import route, appended to WorkflowDefinitionRemoteDeployRequest.TargetServerUrl. Null or blank means WorkflowPublisherOptions.DefaultCommandPath, the route MapWorkflowEndpoints serves.

property TargetServerUrl #

public required string TargetServerUrl { get; init; }

The base address of the target workflow server.

property WorkflowName #

public required string WorkflowName { get; init; }

The workflow to deploy.

property 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

MemberKindSummary
WorkflowDefinitionRemoteDeployResult()constructorCreates an instance of WorkflowDefinitionRemoteDeployResult.
ErrorpropertyWhy the deployment failed, when the export or the push failed.
SucceededpropertyWhether the target imported the definition; false also when the target already had the same definition.
TargetServerUrlpropertyThe target workflow server.
ValidationIssuespropertyThe validation issues the target reported.
WorkflowNamepropertyThe workflow name.
WorkflowVersionpropertyThe version the target reports.

constructor WorkflowDefinitionRemoteDeployResult() #

public WorkflowDefinitionRemoteDeployResult()

Creates an instance of WorkflowDefinitionRemoteDeployResult.

property Error #

public string? Error { get; init; }

Why the deployment failed, when the export or the push failed.

property Succeeded #

public bool Succeeded { get; init; }

Whether the target imported the definition; false also when the target already had the same definition.

property TargetServerUrl #

public string? TargetServerUrl { get; init; }

The target workflow server.

property ValidationIssues #

public string[]? ValidationIssues { get; init; }

The validation issues the target reported.

property WorkflowName #

public string? WorkflowName { get; init; }

The workflow name.

property 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 WorkflowDefinitionDeploymentService.CreateImportRequestAsync), 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

MemberKindSummary
WorkflowDefinitionRemoteDeployService(IWorkflowDefinitionImportTransport, ILogger)constructorPushes one exported definition to another workflow server through an IWorkflowDefinitionImportTransport.
DeployAsync(WorkflowDefinitionRemoteDeployRequest, Func<CancellationToken, Task<WorkflowDefinitionImportRequest>>, CancellationToken)methodExports the definition and pushes it to the target.

constructor 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 WorkflowDefinitionDeploymentService.CreateImportRequestAsync), 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) #

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; returns null when 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

MemberKindSummary
WorkflowPublisher(IWorkflowDefinitionImportTransport, IBundledWorkflowProvider, IOptions<WorkflowPublisherOptions>, ILogger<WorkflowPublisher>)constructorCreates the publisher.
PublishAllAsync(CancellationToken)methodPublishes every bundled workflow, retrying each up to WorkflowPublisherOptions.MaxRetriesPerWorkflowtimes with a doubling delay.

constructor 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) #

public Task<PublishSummary> PublishAllAsync(CancellationToken cancellationToken)

Publishes every bundled workflow, retrying each up to WorkflowPublisherOptions.MaxRetriesPerWorkflowtimes with a doubling delay. A workflow without a canonical definition fails. A failure is counted and the run goes on, unless WorkflowPublisherOptions.FailOnErroris set.

Parameters

  • cancellationToken: Cancels the operation.

Returns

The counts of the run.

class WorkflowPublisherHostedService

public sealed class WorkflowPublisherHostedService : IHostedService

Runs WorkflowPublisher.PublishAllAsync(CancellationToken)once on IHostedService.StartAsync(CancellationToken). Wired by AddWorkflowPublisher(). 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

MemberKindSummary
WorkflowPublisherHostedService(WorkflowPublisher, ILogger<WorkflowPublisherHostedService>)constructorCreates the service.
StartAsync(CancellationToken)methodRuns one publish run; an error stops the host start.
StopAsync(CancellationToken)methodDoes nothing.

constructor 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) #

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) #

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.SectionNamesection of the host configuration (or from the section a caller passes) and validates it when the host starts.

Members

MemberKindSummary
WorkflowPublisherOptions()constructorCreates an instance of WorkflowPublisherOptions.
DefaultCommandPathconstantThe import route of the Workflow endpoints (MapWorkflowEndpoints in StellaOps.Workflow.AspNetCore), the default WorkflowPublisherOptions.CommandPath.
SectionNameconstantThe configuration section AddWorkflowPublisher binds.
AuthTokenpropertyOptional bearer token for the outbound request.
CommandPathpropertyPath of the import route, appended to WorkflowPublisherOptions.Endpoint.
DryRunpropertyWhen true the publisher logs what it would POST but does not actually POST.
EnabledpropertyWhen false the publisher does nothing on startup.
EndpointpropertyBase URL of the workflow service’s REST gateway (no trailing slash).
FailOnErrorpropertyIf false, publish failures are logged as warnings and the service continues to start up.
MaxRetriesPerWorkflowpropertyRetries of a failed import, per workflow; not negative.
RetryBaseDelaypropertyThe delay before the first retry, doubled for each further retry; not negative.
ServiceNamepropertyLogical name of the publishing service, sent as the import request’s ImportedBy.
TimeoutpropertyThe timeout of one import request; positive.

constructor WorkflowPublisherOptions() #

public WorkflowPublisherOptions()

Creates an instance of WorkflowPublisherOptions.

constant DefaultCommandPath #

public const string DefaultCommandPath = "/api/workflow/definitions/import"

The import route of the Workflow endpoints (MapWorkflowEndpoints in StellaOps.Workflow.AspNetCore), the default WorkflowPublisherOptions.CommandPath.

constant SectionName #

public const string SectionName = "WorkflowPublisher"

The configuration section AddWorkflowPublisher binds.

property 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 #

public string CommandPath { get; init; }

Path of the import route, appended to WorkflowPublisherOptions.Endpoint. Defaults to WorkflowPublisherOptions.DefaultCommandPath, 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 #

public bool DryRun { get; init; }

When true the publisher logs what it would POST but does not actually POST.

property Enabled #

public bool Enabled { get; init; }

When false the publisher does nothing on startup. Handy for per-environment overrides.

property Endpoint #

public string Endpoint { get; init; }

Base URL of the workflow service’s REST gateway (no trailing slash).

property 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 #

public int MaxRetriesPerWorkflow { get; init; }

Retries of a failed import, per workflow; not negative. The default is 3.

property 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 #

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 #

public TimeSpan Timeout { get; init; }

The timeout of one import request; positive. The default is 30 seconds.