Class BeanDefinition
Leaf definition that resolves a DI service and invokes a method on it (service activator/bean).
public sealed class BeanDefinition : ProcessorDefinition, IProcessorDefinition
Inheritance
Implements
Inherited Members
Properties
Method
Normalized delegate invoked with (service, exchange, ct).
public Func<object, IExchange, CancellationToken, Task> Method { get; }
Methods
CreateProcessor(IRouteContext)
Compile this node into a runtime processor.
public override IProcessor CreateProcessor(IRouteContext context)
Constructors
BeanDefinition(Type, Func<object, IExchange, CancellationToken, Task>)
Creates a bean definition.