Reflection-based Publisher

In order to use it, create a class containing an event decorated with a [WampTopic] attribute. Then register an instance of the class using the RegisterPublisher method of IWampRealmServiceProvider. The arguments published to the event will be treated as the arguments keywords of the publication.

Note: if the delegate used is of any Action<> type, the publication will send the parameters as the positional arguments of the publication, otherwise it will use the parameters as the keyword arguments of the publication (with the delegate parameters’ names as the keys).

Note: These samples are based on this AutobahnJS sample, but are a bit different (WampSharp doesn’t support publishing both positional arguments and keyword arguments with this feature)