Exemplo n.º 1
0
 public bool TryAddConvention(IMessagePublishTopologyConvention <TMessage> convention)
 {
     if (_conventions.Any(x => x.GetType() == convention.GetType()))
     {
         return(false);
     }
     _conventions.Add(convention);
     return(true);
 }
Exemplo n.º 2
0
 public void AddConvention(IMessagePublishTopologyConvention <TMessage> convention)
 {
     _conventions.Add(convention);
 }