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