public MessageTopology(IEntityNameFormatter entityNameFormatter)
        {
            EntityNameFormatter = entityNameFormatter ?? throw new ArgumentNullException(nameof(entityNameFormatter));

            _messageTypes = new ConcurrentDictionary <Type, IMessageTypeTopologyConfigurator>();
            _observers    = new MessageTopologyConfigurationObservable();
        }
 public ServiceBusEnvironmentNameFormatter(IEntityNameFormatter original, SomeAppSettingsSection busSettings)
 {
     _original = original;
     _prefix   = string.IsNullOrWhiteSpace(busSettings.Environment)
             ? string.Empty                   // no prefix
             : $"{busSettings.Environment}:"; // custom prefix
 }
Beispiel #3
0
 static Cached()
 {
     _entityNameFormatter = new MessageNameFormatterEntityNameFormatter(new AmazonSqsMessageNameFormatter());
 }
 public CustomEntityNameFormatter(IEntityNameFormatter entityNameFormatter)
 {
     _entityNameFormatter = entityNameFormatter;
 }
 public EnvironmentNameFormatter(IEntityNameFormatter original)
 {
     _original = original;
 }
Beispiel #6
0
 static Cached()
 {
     _entityNameFormatter = new MessageUrnEntityNameFormatter();
 }
 static Cached()
 {
     _entityNameFormatter = new MessageNameFormatterEntityNameFormatter(new RabbitMqMessageNameFormatter());
 }
 public EventNamespaceNameFormatter(IEntityNameFormatter defaultEntityNameFormatter, IEventNameProvider eventNameProvider)
 {
     _defaultEntityNameFormatter = defaultEntityNameFormatter;
     _eventNameProvider          = eventNameProvider;
 }
Beispiel #9
0
        public MessageEntityNameFormatter(IEntityNameFormatter entityNameFormatter)
        {
            _entityNameFormatter = entityNameFormatter;

            InitializeEntityNameFromAttributeIfSpecified();
        }
Beispiel #10
0
 static Cached()
 {
     _entityNameFormatter = new MessageNameFormatterEntityNameFormatter(new ServiceBusMessageNameFormatter());
 }
Beispiel #11
0
 public PrefixEntityNameFormatter(IEntityNameFormatter entityNameFormatter, string prefix)
 {
     _entityNameFormatter = entityNameFormatter;
     _prefix = prefix;
 }
 public MessageEntityNameFormatter(IEntityNameFormatter entityNameFormatter)
 {
     _entityNameFormatter = entityNameFormatter;
 }
Beispiel #13
0
 static Cached()
 {
     _entityNameFormatter = new MessageNameFormatterEntityNameFormatter(new ActiveMqMessageNameFormatter());
 }
Beispiel #14
0
 public EnvironmentNameFormatter(IEntityNameFormatter original, IWebHostEnvironment webHostEnvironment)
 {
     _original           = original;
     _webHostEnvironment = webHostEnvironment;
 }
 public void SetEntityNameFormatter(IEntityNameFormatter entityNameFormatter)
 {
     EntityNameFormatter = entityNameFormatter ?? throw new ArgumentNullException(nameof(entityNameFormatter));
 }
Beispiel #16
0
 public void SetEntityNameFormatter(IEntityNameFormatter entityNameFormatter)
 {
     EntityNameFormatter = entityNameFormatter ?? throw new ArgumentNullException("The entity name formatter cannot be null");
 }
 /// <summary>
 /// Contructor.
 /// </summary>
 /// <param name="originalFormatter">Original formatter.</param>
 /// <param name="messageTypePrefix">Prefix for message type.</param>
 public PrefixEntityNameFormatter(IEntityNameFormatter originalFormatter, string messageTypePrefix)
 {
     _originalFormatter = Check.NotNull(originalFormatter, nameof(originalFormatter));
     _prefix            = Check.NotNullOrWhiteSpace(messageTypePrefix, nameof(messageTypePrefix));
 }