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

Select correct AMQP link for a Module Twin v. and Edge Device #2219

Merged
merged 29 commits into from
Nov 1, 2021

Conversation

jamdavi
Copy link
Member

@jamdavi jamdavi commented Oct 22, 2021

In bug #2099 when creating a ModuleClient for a Module Twin using AMQP (not an Edge Module) the AmqpTransport would use an incorrect receiver link.

This PR addresses that error and introduces the ability for a DeviceClient and a ModuleClient to disconnect a receiver link over AMQP without closing the entire AMQP session. To get around this I've removed the DisableReceiveMessageAsync method from the AmqpTransportHandler class. This should help with #2218.

@jamdavi jamdavi changed the title Jamdavi/issue2099 Select correct AMQP link for a Module Twin v. and Edge Device Oct 22, 2021
@jamdavi jamdavi marked this pull request as ready for review October 22, 2021 20:21
@jamdavi
Copy link
Member Author

jamdavi commented Oct 28, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jamdavi
Copy link
Member Author

jamdavi commented Oct 28, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jamdavi
Copy link
Member Author

jamdavi commented Oct 28, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jamdavi
Copy link
Member Author

jamdavi commented Oct 28, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jamdavi jamdavi enabled auto-merge (squash) November 1, 2021 17:01
@jamdavi
Copy link
Member Author

jamdavi commented Nov 1, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jamdavi jamdavi disabled auto-merge November 1, 2021 17:27
@jamdavi jamdavi merged commit 60eaa3b into main Nov 1, 2021
@jamdavi jamdavi deleted the jamdavi/issue2099 branch November 1, 2021 23:40
timstewartm pushed a commit to timstewartm/azure-iot-sdk-csharp that referenced this pull request May 30, 2024
…Device (Azure#2219)

* Select correct AMQP link for a Module Twin v. and Edge Device.

* Updating unit tests and removing additional projects for testing

* Remove safe close sematics to keep client the same.

* Remove underscore

* Restore AmqpUnit completely, no changes needed here

* Add note to IDelegatingHandler

* Update iothub/device/src/IDelegatingHandler.cs

Co-authored-by: David R. Williamson <drwill@microsoft.com>

* Update iothub/device/src/IDelegatingHandler.cs

Co-authored-by: David R. Williamson <drwill@microsoft.com>

* Update iothub/device/src/ModuleClient.cs

Co-authored-by: David R. Williamson <drwill@microsoft.com>

* Update iothub/device/src/ModuleClient.cs

Co-authored-by: David R. Williamson <drwill@microsoft.com>

* Feedback

* Adding assemblyinfo

* Fixing isAnEdgeModule in comments

* Remove new lines

* Style fixes

Co-authored-by: David R. Williamson <drwill@microsoft.com>

* Style changes

* Move all edge module tests and turn of parallel execution

* Make IotHubConnectionString dictate if the ModuleClient is using a gateway

* remove extra comment

* remove line break

* Fixing order of builder

* Adding disable handler back

Co-authored-by: David R. Williamson <drwill@microsoft.com>
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.

4 participants