Ejemplo n.º 1
0
        protected override ChannelProvider <TChannel> Visitor <TConsumer, TChannel>(
            InstanceChannelProvider <TConsumer, TChannel> provider)
        {
            _current = GetVertex(provider.GetHashCode(), () => "Provider", typeof(InstanceChannelProvider <TConsumer, TChannel>),
                                 typeof(TConsumer));

            if (_stack.Count > 0)
            {
                _edges.Add(new Edge(_current, _stack.Peek(), _current.TargetType.Name));
            }

            return(WithVertex(() => base.Visitor(provider)));
        }
Ejemplo n.º 2
0
 protected virtual ChannelProvider <TChannel> Visitor <TConsumer, TChannel>(
     InstanceChannelProvider <TConsumer, TChannel> provider)
     where TConsumer : class
 {
     return(provider);
 }