Share via


ProtocolBuilder Class

Definition

.

public sealed class ProtocolBuilder
type ProtocolBuilder = class
Public NotInheritable Class ProtocolBuilder
Inheritance
ProtocolBuilder

Properties

Name Description
RouteBuilder

Gets a route builder to configure message handlers.

Methods

Name Description
AddClassAttributeTypes(Type)

Adds types registered in SendsMessageAttribute or YieldsOutputAttribute on the target Type. This can be used to implement delegate-based request handling akin to what is provided by Executor<TInput> or Executor<TInput,TOutput>.

AddDelegateAttributeTypes(Delegate)

Adds types registered in SendsMessageAttribute or YieldsOutputAttribute on the target Delegate. This can be used to implement delegate-based request handling akin to what is provided by Executor<TInput> or Executor<TInput,TOutput>.

AddMethodAttributeTypes(MethodInfo)

Adds types registered in SendsMessageAttribute or YieldsOutputAttribute on the target MethodInfo. This can be used to implement delegate-based request handling akin to what is provided by Executor<TInput> or Executor<TInput,TOutput>.

ConfigureRoutes(Action<RouteBuilder>)

Fluently configures message handlers.

SendsMessage<TMessage>()

Adds the specified type to the set of declared "sent" message types for the protocol. Objects of these types will be allowed to be sent through the Executor's outgoing edges, via SendMessageAsync(Object, String, CancellationToken).

SendsMessageType(Type)

Adds the specified type to the set of declared "sent" messagetypes for the protocol. Objects of these types will be allowed to be sent through the Executor's outgoing edges, via SendMessageAsync(Object, String, CancellationToken).

SendsMessageTypes(IEnumerable<Type>)

Adds the specified types to the set of declared "sent" message types for the protocol. Objects of these types will be allowed to be sent through the Executor's outgoing edges, via SendMessageAsync(Object, String, CancellationToken).

YieldsOutput<TOutput>()

Adds the specified output type to the set of declared "yielded" output types for the protocol. Objects of this type will be allowed to be output from the executor through the WorkflowOutputEvent, via YieldOutputAsync(Object, CancellationToken).

YieldsOutputType(Type)

Adds the specified output type to the set of declared "yielded" output types for the protocol. Objects of this type will be allowed to be output from the executor through the WorkflowOutputEvent, via YieldOutputAsync(Object, CancellationToken).

YieldsOutputTypes(IEnumerable<Type>)

Adds the specified types to the set of declared "yielded" output types for the protocol. Objects of these types will be allowed to be output from the executor through the WorkflowOutputEvent, via YieldOutputAsync(Object, CancellationToken).

Applies to