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