Esempio n. 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);
        }
Esempio n. 2
0
 public void Register(MessageRegistration registration)
 {
     _registrations.Add(registration);
 }