private static IEventPosition GetEventPosition( Func <AzureEventPosition> getFunc) { AzureEventPosition azureEventPosition = getFunc(); return(new EventPosition(azureEventPosition)); }
public IEventPosition FromSequenceNumber( long sequenceNumber, bool inclusive = false) => GetEventPosition( () => AzureEventPosition.FromSequenceNumber( sequenceNumber, inclusive));
public IEventPosition FromStart() => GetEventPosition(() => AzureEventPosition.FromStart());
public IEventPosition FromOffset(string offset, bool inclusive = false) => GetEventPosition( () => AzureEventPosition.FromOffset(offset, inclusive));
public IEventPosition FromEnqueuedTime(DateTime enqueuedTimeUtc) => GetEventPosition( () => AzureEventPosition.FromEnqueuedTime(enqueuedTimeUtc));
public IEventPosition FromEnd() => GetEventPosition(() => AzureEventPosition.FromEnd());
public EventPosition(AzureEventPosition azureEventPosition) { this.azureEventPosition = azureEventPosition; }