Skip to content

PROTOCOL

ObserversInterceptor

public protocol ObserversInterceptor

Methods

workflowObservers(for:)

func workflowObservers(for initialObservers: [WorkflowObserver]) -> [WorkflowObserver]

Provides a single access point to provide the final list of WorkflowObserver used by the runtime. This may be used to ensure a known set of observers is used in a particular order for all WorkflowHosts created over the life of a program. - Parameter initialObservers: Array of observers passed to a WorkflowHost constructor - Returns: The array of WorkflowObservers to be used by the WorkflowHost

Parameters

Name Description
initialObservers Array of observers passed to a WorkflowHost constructor