public CaptureProcessor(IEventProcessor processor, PartitionContext context, EventHubsDetails eventHubsDetails) { this.context = context; this.processor = processor; this.eventHubsDetails = eventHubsDetails; if (eventHubsDetails.StartingAt != null && eventHubsDetails.StartingAt != DateTime.MinValue) { useStartFile = true; startString = GetStartString(context.PartitionId); } }
public CaptureProcessorHost(string namespaceName, string eventHubName, int partitionCount, string storageAccountConnectionString, string captureContainer, string captureFileNameFormat, DateTime?startingAt) { eventHubsDetails = new EventHubsDetails(namespaceName, eventHubName, partitionCount, storageAccountConnectionString, captureContainer, captureFileNameFormat, startingAt); }