jeudi 1 octobre 2020

Mapping a message to a function call

I have a server application written in C#. It receives mqtt messages and calls methods according to their content and passes them the payload as a parameter. I have made this method call using a dictionary, where I map a string to a function. Is there an elegant solution or design pattern suitable for this situation? Thank you

Aucun commentaire:

Enregistrer un commentaire