Ejemplo n.º 1
0
 public LinkProducerTopologyHandler(
     LinkProducerTopologyConfigDelegate configAction,
     LinkTopologyErrorDelegate errorAction
     )
 {
     _configAction = configAction ?? throw new ArgumentNullException(nameof(configAction));
     _errorAction  = errorAction ?? throw new ArgumentNullException(nameof(errorAction));
 }
Ejemplo n.º 2
0
        public ILinkProducerBuilder Exchange(LinkProducerTopologyConfigDelegate config, LinkTopologyErrorDelegate error)
        {
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }

            if (error == null)
            {
                throw new ArgumentNullException(nameof(error));
            }

            return(Exchange(new LinkProducerTopologyHandler(config, error)));
        }
Ejemplo n.º 3
0
 public ILinkProducerBuilder Exchange(LinkProducerTopologyConfigDelegate config)
 {
     return(Exchange(config, ex => Task.CompletedTask));
 }