C# Class Appccelerate.MappingEventBroker.Conventions.FuncTopicConvention

This topic convention implementation allows to use lambda expressions for dynamic topic convention.
Inheritance: ITopicConvention
Afficher le fichier Open project: appccelerate/appccelerate

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

FuncTopicConvention() public méthode

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

IsCandidate() public méthode

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.
Résultat bool

MapTopic() public méthode

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