C# Class NServiceBus.Pipeline.MessageHandler

Represents a message handler and its invocation.
Show file Open project: Particular/NServiceBus

Private Properties

Property Type Description

Public Methods

Method Description
Invoke ( object message, IMessageHandlerContext handlerContext ) : System.Threading.Tasks.Task

Invokes the message handler.

MessageHandler ( Func invocation, Type handlerType ) : System

Creates a new instance of the message handler with predefined invocation delegate and handler type.

Method Details

Invoke() public method

Invokes the message handler.
public Invoke ( object message, IMessageHandlerContext handlerContext ) : System.Threading.Tasks.Task
message object the message to pass to the handler.
handlerContext IMessageHandlerContext the context to pass to the handler.
return System.Threading.Tasks.Task

MessageHandler() public method

Creates a new instance of the message handler with predefined invocation delegate and handler type.
public MessageHandler ( Func invocation, Type handlerType ) : System
invocation Func The invocation with context delegate.
handlerType System.Type The handler type.
return System