Beispiel #1
0
        public MessageRegistration Register(Type handlerInstanceType, Type messageInstanceType, string topic, string messageType)
        {
            var registration = new MessageRegistration(
                handlerInstanceType: handlerInstanceType,
                messageInstanceType: messageInstanceType,
                topic: topic,
                messageType: messageType
                );

            Register(registration);

            return(registration);
        }
Beispiel #2
0
 public void Register(MessageRegistration registration)
 {
     _registrations.Add(registration);
 }