Dela via


EventProcessorOptions.InitialOffsetProvider Property

Definition

Gets or sets a delegate which is used to get the initial offset for a given partition to create EventHubReceiver. Delegate is invoked by passing in PartitionId and then user can return either the starting offset as string or starting UTC time for receiving messages. This is only used when Offset is not provided and receiver is being created for the very first time. This corresponds to either CreateReceiverAsync(String, ReceiverOptions) or CreateReceiverAsync(String, DateTime, ReceiverOptions) depending on the type of return value from delegate.

public Func<string,object> InitialOffsetProvider { get; set; }
member this.InitialOffsetProvider : Func<string, obj> with get, set
Public Property InitialOffsetProvider As Func(Of String, Object)

Property Value

Applies to