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

SDK version 4.2.0 (Hotfix on 4.1.3): Enable a way to Unregister Message Handler and Session Handler (#14021) #15151

Merged

Conversation

DorothySun216
Copy link
Contributor

@DorothySun216 DorothySun216 commented Sep 15, 2020

Publish a minor Nuget version to address customer needs for Unregister Message Handler and Session Handler functionality.

…#14021)

* add UnregisterMessageHandler method

* Update sdk/servicebus/Microsoft.Azure.ServiceBus/src/Core/IReceiverClient.cs

Co-authored-by: Sean Feldman <SeanFeldman@users.noreply.github.com>

* Update sdk/servicebus/Microsoft.Azure.ServiceBus/src/Core/MessageReceiver.cs

Co-authored-by: Sean Feldman <SeanFeldman@users.noreply.github.com>

* Update the unregister method to be async and await for inflight operations to finish

* Update sdk/servicebus/Microsoft.Azure.ServiceBus/src/SubscriptionClient.cs

Co-authored-by: Sean Feldman <SeanFeldman@users.noreply.github.com>

* Update sdk/servicebus/Microsoft.Azure.ServiceBus/src/Core/MessageReceiver.cs

Co-authored-by: Sean Feldman <SeanFeldman@users.noreply.github.com>

* Update sdk/servicebus/Microsoft.Azure.ServiceBus/src/QueueClient.cs

Co-authored-by: Sean Feldman <SeanFeldman@users.noreply.github.com>

* Change name to have async suffix and add to existing onMessageQueueTests

* Add UnregisterSessionHandlerAsync and corresponding tests

* nit

* nit

* Add a new cancellation type to not cancel inflight message handling operations when unregister is called.

* Add another type of cancellation token to session handler path

* nit

* Add a timeout parameter to unregister functions and add according unit tests

* nit

* cancel runningTaskCancellationTokenSource after unregister is done

* change public API

* update the API header

* update the API definition

* fix spacing

* fix ApproveAzureServiceBus CIT test

Co-authored-by: Sean Feldman <SeanFeldman@users.noreply.github.com>
Copy link

@shankarsama shankarsama left a comment

Choose a reason for hiding this comment

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

:shipit:

@shankarsama shankarsama changed the title Enable a way to Unregister Message Handler and Session Handler (#14021) SDK version 4.2.0 (Hotfix on 4.1.3): Enable a way to Unregister Message Handler and Session Handler (#14021) Sep 15, 2020
@shankarsama shankarsama merged commit dc0fda4 into Azure:release/unregister Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants