C# Class Prototype.Service.Routing.MessageRouter

This class proccesses incoming messages, and persists them to the data store
Inheritance: IMessageRouter
Mostrar archivo Open project: radicalgeek/SampleMicroservice Class Usage Examples

Public Methods

Method Description
MessageRouter ( ILogger logger, IDataOperations dataOperations, IMessageFilter filter ) : System
RouteSampleMessage ( dynamic message ) : void

Route the message based on the "method" field in the incoming message.

Method Details

MessageRouter() public method

public MessageRouter ( ILogger logger, IDataOperations dataOperations, IMessageFilter filter ) : System
logger ILogger
dataOperations IDataOperations
filter IMessageFilter
return System

RouteSampleMessage() public method

Route the message based on the "method" field in the incoming message.
public RouteSampleMessage ( dynamic message ) : void
message dynamic dynamic message object from the bus keeps contracts loosly coupled
return void