Share via


ReflectingExecutor<TExecutor> Class

Definition

Caution

Use [MessageHandler] attribute on methods in a partial class deriving from Executor. This type will be removed in a future version.

A component that processes messages in a Workflow.

[System.Obsolete("Use [MessageHandler] attribute on methods in a partial class deriving from Executor. This type will be removed in a future version.")]
public class ReflectingExecutor<TExecutor> : Microsoft.Agents.AI.Workflows.Executor where TExecutor : ReflectingExecutor<TExecutor>
[<System.Obsolete("Use [MessageHandler] attribute on methods in a partial class deriving from Executor. This type will be removed in a future version.")>]
type ReflectingExecutor<'Executor (requires 'Executor :> ReflectingExecutor<'Executor>)> = class
    inherit Executor
Public Class ReflectingExecutor(Of TExecutor)
Inherits Executor

Type Parameters

TExecutor

The actual type of the ReflectingExecutor<TExecutor>. This is used to reflectively discover handlers for messages without violating ILTrim requirements.

Inheritance
ReflectingExecutor<TExecutor>
Attributes

Remarks

This type is obsolete. Use the MessageHandlerAttribute on methods in a partial class deriving from Executor instead.

Constructors

Name Description
ReflectingExecutor<TExecutor>(String, ExecutorOptions, Boolean)

Initialize the executor with a unique identifier

Properties

Name Description
Id

A unique identifier for the executor.

(Inherited from Executor)
InputTypes

A set of Types, representing the messages this executor can handle.

(Inherited from Executor)
Options

Gets the configuration options for the executor.

(Inherited from Executor)
OutputTypes

A set of Types, representing the messages this executor can produce as output.

(Inherited from Executor)

Methods

Name Description
CanHandle(Type)

Checks if the executor can handle a specific message type.

(Inherited from Executor)
ConfigureProtocol(ProtocolBuilder)

Configures the protocol by setting up routes and declaring the message types used for sending and yielding output.

DescribeProtocol()

Describes the protocol for communication with this Executor.

(Inherited from Executor)
ExecuteCoreAsync(Object, TypeId, IWorkflowContext, CancellationToken)

Process an incoming message using the registered handlers.

(Inherited from Executor)
InitializeAsync(IWorkflowContext, CancellationToken)

Perform any asynchronous initialization required by the executor. This method is called once per executor instance,

(Inherited from Executor)
OnCheckpointingAsync(IWorkflowContext, CancellationToken)

Invoked before a checkpoint is saved, allowing custom pre-save logic in derived classes.

(Inherited from Executor)
OnCheckpointRestoredAsync(IWorkflowContext, CancellationToken)

Invoked after a checkpoint is loaded, allowing custom post-load logic in derived classes.

(Inherited from Executor)

Extension Methods

Name Description
BindExecutor(Executor)

Configures an Executor instance for use in a workflow.

Applies to