IMessageConsumePipeSpecification CreateMessageSpecification <T>(Type type) where T : class { var specification = new MessageConsumePipeSpecification <T>(); for (var index = 0; index < _specifications.Count; index++) { specification.AddPipeSpecification(_specifications[index]); } _observers.MessageSpecificationCreated(specification); return(specification); }
IMessageConsumePipeSpecification CreateMessageSpecification <T>(Type type) where T : class { var specification = new MessageConsumePipeSpecification <T>(); foreach (var pipeSpecification in _specifications) { specification.AddPipeSpecification(pipeSpecification); } _observers.MessageSpecificationCreated(specification); var connector = new ImplementedMessageTypeConnector <T>(this, specification); ImplementedMessageTypeCache <T> .EnumerateImplementedTypes(connector); return(specification); }