コード例 #1
0
 public EventHubProducerContext(EventHubProducerClient producerClient, IEventHubProducerSharedContext context)
 {
     _producerClient = producerClient;
     HostAddress     = context.HostAddress;
     LogContext      = context.LogContext;
     SendObservers   = context.SendObservers;
     Serializer      = context.Serializer;
     _pipe           = context.SendPipe;
 }
コード例 #2
0
 public EventHubProducerProvider(IEventHubProducerSharedContext context, ConsumeContext consumeContext)
 {
     _context        = context;
     _consumeContext = consumeContext;
 }
コード例 #3
0
 public EventHubProducerContext(EventHubProducerClient producerClient, IEventHubProducerSharedContext context)
 {
     _producerClient = producerClient;
     _context        = context;
     _pipe           = context.SendPipe;
 }
コード例 #4
0
        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));
        }
コード例 #5
0
 public EventHubRider(IEnumerable <IEventHubReceiveEndpoint> endpoints, IEventHubProducerSharedContext producerSharedContext, RiderObservable observers)
     : base("azure.event-hub", observers)
 {
     _endpoints             = endpoints;
     _producerSharedContext = producerSharedContext;
 }