Module |
|
Header |
/Engine/Source/Runtime/MessagingCommon/Public/MessageEndpointBuilder.h |
Include |
#include "MessageEndpointBuilder.h" |
FMessageEndpointBuilder & WithHandler
(
const TSharedRef< IMessageHandler, ESPMode::ThreadSafe > & Handler
)
Registers a message handler with the endpoint.
It is legal to configure multiple handlers for the same message type. Each handler will be executed when a message of the specified type is received.
This instance (for method chaining).
Parameter |
Description |
---|---|
Handler |
The handler to add. |