Skip to content
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

Samples that show concurrent processing #1803

Merged
merged 2 commits into from
Sep 1, 2023

Conversation

ramonsmits
Copy link
Contributor

Samples that show concurrent processing with:

  • a concurrency limit
  • without auto ACK

@@ -177,4 +177,60 @@ public static async Task Subscribe_Topic()
response.DumpToConsole();
}
}
}

public static void ConcurrentProcessingWithLimit(CancellationToken shutdownToken, IMqttClient mqttClient)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please apply snake case here for the method name because it gets printed to the console. All other methods are using snake case in order to improve reading in the console.

@@ -177,4 +177,60 @@ public static async Task Subscribe_Topic()
response.DumpToConsole();
}
}
}

public static void ConcurrentProcessingWithLimit(CancellationToken shutdownToken, IMqttClient mqttClient)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure that the sample can be executed in the console app. This requires that the method has no parameters. You may use hivemqtt or mosquitto public broker in this sample.

@chkr1011 chkr1011 merged commit 0d3dd96 into dotnet:master Sep 1, 2023
1 of 2 checks passed
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.

2 participants