Example #1
0
 public EventProcessorLifecycleManager(EventHubConsumerGroup eventHubConsumer, Lease lease, ICheckpointManager checkpointManager, EventProcessorOptions processorOptions)
 {
     this.eventHubConsumer  = eventHubConsumer;
     this.lease             = lease;
     this.checkpointManager = checkpointManager;
     this.processorOptions  = processorOptions;
 }
Example #2
0
 public EventProcessorInitializeAsyncResult(EventProcessorLifecycleManager lifeCycleManager, Lease lease, AsyncCallback callback, object state) : base(TimeSpan.MaxValue, callback, state)
 {
     this.lifeCycleManager = lifeCycleManager;
     this.lease            = lease;
     this.trackingContext  = TrackingContext.GetInstance(Guid.NewGuid(), lease.PartitionId);
     this.partitionId      = lease.PartitionId;
     this.startingOffset   = lease.Offset;
     this.epoch            = lease.Epoch;
     EventProcessorLifecycleManager.EventProcessorInitializeAsyncResult eventProcessorInitializeAsyncResult = this;
     eventProcessorInitializeAsyncResult.OnCompleting = (Action <AsyncResult, Exception>)Delegate.Combine(eventProcessorInitializeAsyncResult.OnCompleting, EventProcessorLifecycleManager.EventProcessorInitializeAsyncResult.OnFinallyDelegate);
     base.Start();
 }
Example #3
0
 public static IAsyncResult Begin(EventProcessorLifecycleManager lifeCycleManager, Lease lease, AsyncCallback callback, object state)
 {
     return(new EventProcessorLifecycleManager.EventProcessorInitializeAsyncResult(lifeCycleManager, lease, callback, state));
 }
 public void RegisterProcessorFactory(Lease lease, ICheckpointManager checkpointManager, IEventProcessorFactory eventProcessorFactory, EventProcessorOptions processorOptions)
 {
     this.RegisterProcessorFactoryAsync(lease, checkpointManager, eventProcessorFactory, processorOptions).Wait();
 }
 public Task RegisterProcessorFactoryAsync(Lease lease, ICheckpointManager checkpointManager, IEventProcessorFactory eventProcessorFactory)
 {
     return(this.RegisterProcessorFactoryAsync(lease, checkpointManager, eventProcessorFactory, EventProcessorOptions.DefaultOptions));
 }
 public void RegisterProcessorFactory(Lease lease, ICheckpointManager checkpointManager, IEventProcessorFactory eventProcessorFactory)
 {
     this.RegisterProcessorFactory(lease, checkpointManager, eventProcessorFactory, EventProcessorOptions.DefaultOptions);
 }
 public Task RegisterProcessorAsync <T>(Lease lease, ICheckpointManager checkpointManager, EventProcessorOptions processorOptions)
     where T : IEventProcessor
 {
     return(this.RegisterProcessorFactoryAsync(lease, checkpointManager, new DefaultEventProcessorFactory <T>(), processorOptions));
 }
 public Task RegisterProcessorAsync <T>(Lease lease, ICheckpointManager checkpointManager)
     where T : IEventProcessor
 {
     return(this.RegisterProcessorAsync <T>(lease, checkpointManager, EventProcessorOptions.DefaultOptions));
 }
 public void RegisterProcessor <T>(Lease lease, ICheckpointManager checkpointManager, EventProcessorOptions processorOptions)
     where T : IEventProcessor
 {
     this.RegisterProcessorAsync <T>(lease, checkpointManager, processorOptions).Wait();
 }
 public void RegisterProcessor <T>(Lease lease, ICheckpointManager checkpointManager)
     where T : IEventProcessor
 {
     this.RegisterProcessor <T>(lease, checkpointManager, EventProcessorOptions.DefaultOptions);
 }