示例#1
0
        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);
        }
示例#2
0
        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);
        }