Skip to content

Expose query_offest #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 16, 2022
Merged

Expose query_offest #68

merged 1 commit into from
Feb 16, 2022

Conversation

Gsantomaggio
Copy link
Member

@Gsantomaggio Gsantomaggio commented Feb 16, 2022

closes: #67

query the consumer offset position with: await system.QueryOffset(consumerName, stream)

example:

 const string consumerName = "myConsumer";
 var consumer = await system.CreateConsumer(
 new ConsumerConfig
 {
    Reference = consumerName,
    Stream = stream,
    OffsetSpec = new OffsetTypeOffset(await system.QueryOffset(consumerName, stream)),
           

@codecov-commenter
Copy link

Codecov Report

Merging #68 (3fbd7d5) into main (4eaf19d) will increase coverage by 0.10%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #68      +/-   ##
==========================================
+ Coverage   90.69%   90.80%   +0.10%     
==========================================
  Files          65       65              
  Lines        4333     4373      +40     
  Branches      257      258       +1     
==========================================
+ Hits         3930     3971      +41     
+ Misses        345      344       -1     
  Partials       58       58              
Impacted Files Coverage Δ
RabbitMQ.Stream.Client/StreamSystem.cs 90.38% <100.00%> (+0.48%) ⬆️
Tests/ConsumerSystemTests.cs 100.00% <100.00%> (ø)
RabbitMQ.Stream.Client/QueryOffsetResponse.cs 85.00% <0.00%> (+5.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4eaf19d...3fbd7d5. Read the comment docs.

@Gsantomaggio Gsantomaggio merged commit c3126d1 into main Feb 16, 2022
@Gsantomaggio Gsantomaggio deleted the expose_query_offset branch February 16, 2022 12:48
fortinjose916 added a commit to fortinjose916/stream-dotnet-client that referenced this pull request Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose QueryOffset to system level
2 participants