public KafkaBusInstanceSpecification(IEnumerable <IKafkaConsumerSpecification> consumers, IEnumerable <IKafkaProducerSpecification> producers, RiderObservable observers) { _consumers = consumers; _producers = producers; _observers = observers; }
public EventHubBusInstanceSpecification(IEnumerable <IEventHubReceiveEndpointSpecification> specifications, IEventHubProducerSpecification producerSpecification, RiderObservable observer) { _specifications = specifications; _producerSpecification = producerSpecification; _observer = observer; }
public static ConnectHandle ConnectEventHub(this IBusInstance busInstance, RiderObservable observers, IEventHubProducerSharedContext sharedContext, IEnumerable <IEventHubReceiveEndpoint> endpoints) { var rider = new EventHubRider(endpoints, sharedContext, observers); return(busInstance.ConnectRider(rider)); }
public KafkaRider(Uri hostAddress, IEnumerable <IKafkaReceiveEndpoint> endpoints, IEnumerable <IKafkaProducerFactory> producerFactories, RiderObservable observers) : base("confluent.kafka", observers) { _hostAddress = hostAddress; _endpoints = endpoints?.ToArray() ?? Array.Empty <IKafkaReceiveEndpoint>(); _producerFactories = producerFactories.ToDictionary(x => x.TopicAddress); }
public static ConnectHandle ConnectKafka(this IBusInstance busInstance, RiderObservable observers, IEnumerable <IKafkaReceiveEndpoint> endpoints, IEnumerable <IKafkaProducerFactory> producers) { var rider = new KafkaRider(busInstance.HostConfiguration.HostAddress, endpoints, producers, observers); return(busInstance.ConnectRider(rider)); }
public EventHubFactoryConfigurator() { _observers = new RiderObservable(); _endpointObservers = new ReceiveEndpointObservable(); _endpoints = new List <IEventHubReceiveEndpointSpecification>(); _hostSettings = new HostSettings(); _storageSettings = new StorageSettings(); _producerSpecification = new EventHubProducerSpecification(_hostSettings); }
protected BaseRider(string name, RiderObservable observers) { if (string.IsNullOrEmpty(name)) { throw new ArgumentException(name); } _name = name; _observers = observers ?? throw new ArgumentNullException(nameof(observers)); }
public KafkaFactoryConfigurator(ClientConfig clientConfig) { _clientConfig = clientConfig; _topics = new List <IKafkaConsumerSpecification>(); _producers = new List <IKafkaProducerSpecification>(); _observers = new RiderObservable(); _endpointObservers = new ReceiveEndpointObservable(); _sendObservers = new SendObservable(); SetHeadersDeserializer(DictionaryHeadersSerialize.Deserializer); SetHeadersSerializer(DictionaryHeadersSerialize.Serializer); }
public EventHubRider(IEnumerable <IEventHubReceiveEndpoint> endpoints, IEventHubProducerSharedContext producerSharedContext, RiderObservable observers) : base("azure.event-hub", observers) { _endpoints = endpoints; _producerSharedContext = producerSharedContext; }