C# Class Appccelerate.MappingEventBroker.Conventions.FuncTopicConvention

This topic convention implementation allows to use lambda expressions for dynamic topic convention.
Inheritance: ITopicConvention
Show file Open project: appccelerate/appccelerate

Public Methods

Method Description
FuncTopicConvention ( bool>.Func candidateSelector, string>.Func topicMapper ) : System

Initializes a new instance of the FuncTopicConvention class.

FuncTopicConvention ( string>.Func topicMapper ) : System

Initializes a new instance of the FuncTopicConvention class.

IsCandidate ( IEventTopicInfo eventTopic ) : bool

Determines whether the specified event topic is a candidate to process.

The mapped side must also be included!

MapTopic ( string topic ) : string

Maps the topic from the source format to the destination format.

Method Details

FuncTopicConvention() public method

Initializes a new instance of the FuncTopicConvention class.
public FuncTopicConvention ( bool>.Func candidateSelector, string>.Func topicMapper ) : System
candidateSelector bool>.Func The candidate selector.
topicMapper string>.Func The topic mapper.
return System

FuncTopicConvention() public method

Initializes a new instance of the FuncTopicConvention class.
public FuncTopicConvention ( string>.Func topicMapper ) : System
topicMapper string>.Func The topic mapper.
return System

IsCandidate() public method

Determines whether the specified event topic is a candidate to process.
The mapped side must also be included!
public IsCandidate ( IEventTopicInfo eventTopic ) : bool
eventTopic IEventTopicInfo The event topic.
return bool

MapTopic() public method

Maps the topic from the source format to the destination format.
public MapTopic ( string topic ) : string
topic string The source topic URI.
return string