Skip to content

Removing necessity of service_url when delivery_mode is expect_replies#258

Merged
rodrigobr-msft merged 7 commits intomainfrom
users/robrandao/expect-replies-no-service-url
Nov 26, 2025
Merged

Removing necessity of service_url when delivery_mode is expect_replies#258
rodrigobr-msft merged 7 commits intomainfrom
users/robrandao/expect-replies-no-service-url

Conversation

@rodrigobr-msft
Copy link
Contributor

This pull request improves how connector clients are managed in the channel service adapter, ensuring that resources are only created and cleaned up when necessary. The main changes introduce a check to determine if a connector client is needed based on the activity's delivery mode and service URL, which helps prevent unnecessary resource allocation and potential errors.

Resource management improvements:

  • Added the _resolve_if_connector_client_is_needed method to decide if a connector client should be created, based on the activity's delivery mode and presence of a service URL.
  • Updated the process_activity method to only create and close a ConnectorClient if it is actually needed, improving efficiency and preventing errors when the service URL is missing. [1] [2]

Other minor improvements:

  • In the create_reply method, wrapped service_url with SkipNone to handle cases where the value may be None.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@rodrigobr-msft rodrigobr-msft marked this pull request as ready for review November 25, 2025 17:35
@rodrigobr-msft rodrigobr-msft requested a review from a team as a code owner November 25, 2025 17:35
Copilot AI review requested due to automatic review settings November 25, 2025 17:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rodrigobr-msft rodrigobr-msft merged commit 08242f1 into main Nov 26, 2025
16 checks passed
@rodrigobr-msft rodrigobr-msft deleted the users/robrandao/expect-replies-no-service-url branch November 26, 2025 21:17
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.

ServiceUrl should not be manditory for expect replies in delivery mode

2 participants

Comments