Skip to content

Comments

[AppConfig] Fixing samples#18542

Merged
6 commits merged intoAzure:masterfrom
seankane-msft:appconfig-samples
May 6, 2021
Merged

[AppConfig] Fixing samples#18542
6 commits merged intoAzure:masterfrom
seankane-msft:appconfig-samples

Conversation

@seankane-msft
Copy link
Contributor

No description provided.

@seankane-msft seankane-msft added the App Configuration Azure.ApplicationModel.Configuration label May 6, 2021
@seankane-msft seankane-msft requested review from v-xuto and xiangyan99 May 6, 2021 17:23
@seankane-msft seankane-msft self-assigned this May 6, 2021
@seankane-msft
Copy link
Contributor Author

#18422

@seankane-msft seankane-msft linked an issue May 6, 2021 that may be closed by this pull request
@@ -24,16 +24,18 @@ async def handle_event_grid_notifications(event_grid_events):

all_keys = []

async with AzureAppConfigurationClient.from_connection_string(CONNECTION_STRING) as client:
Copy link
Member

Choose a reason for hiding this comment

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

This will cause connection unclose.

We recommend users to use context manager to close client.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no __enter__ (or __aenter__ in async) on the clients. Adding this now.

@ghost
Copy link

ghost commented May 6, 2021

Hello @seankane-msft!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 4102294 into Azure:master May 6, 2021
@seankane-msft seankane-msft deleted the appconfig-samples branch May 6, 2021 20:19
iscai-msft added a commit to iscai-msft/azure-sdk-for-python that referenced this pull request May 7, 2021
…into azure_purview_scanning

* 'master' of https://github.com/Azure/azure-sdk-for-python: (31 commits)
  [purview] add catalog client (Azure#17788)
  Add spellcheck for modified files (Azure#18496)
  [Container Registry] Update API for Beta 2 (Azure#18392)
  First version of Confidential Ledger Python SDK (Azure#17951)
  [llc] add quickstart (Azure#18537)
  [Storage][Fix]Copy source is redirecting (Azure#18577)
  [Tables] pre-release script (Azure#18505)
  Update changelogs (Azure#18575)
  [formrecognizer] Adding to_dict() on custom models (Azure#18402)
  Raise CredentialUnavailableError when CLI subprocess times out (Azure#18509)
  Extend Check Enforcer timeout (Azure#18526)
  Core raw streaming (Azure#17920)
  hide secrets in mgmt sdk (Azure#18535)
  add filter samples for list methods (Azure#18480)
  Revert changes to SetDevVersion. (Azure#18555)
  add support for filtering/paging/sorting options for "list_**" methods (Azure#18302)
  [Tables] Misc client updates (Azure#18462)
  [EventHub&ServiceBus] Prepare for release (Azure#18527)
  [Communication]: Updated communication connection strings to be consistent across packages and languages (Azure#18519)
  [AppConfig] Fixing samples (Azure#18542)
  ...
iscai-msft added a commit to iscai-msft/azure-sdk-for-python that referenced this pull request May 7, 2021
…into agrifood_nspkg

* 'master' of https://github.com/Azure/azure-sdk-for-python: (31 commits)
  [purview] add catalog client (Azure#17788)
  Add spellcheck for modified files (Azure#18496)
  [Container Registry] Update API for Beta 2 (Azure#18392)
  First version of Confidential Ledger Python SDK (Azure#17951)
  [llc] add quickstart (Azure#18537)
  [Storage][Fix]Copy source is redirecting (Azure#18577)
  [Tables] pre-release script (Azure#18505)
  Update changelogs (Azure#18575)
  [formrecognizer] Adding to_dict() on custom models (Azure#18402)
  Raise CredentialUnavailableError when CLI subprocess times out (Azure#18509)
  Extend Check Enforcer timeout (Azure#18526)
  Core raw streaming (Azure#17920)
  hide secrets in mgmt sdk (Azure#18535)
  add filter samples for list methods (Azure#18480)
  Revert changes to SetDevVersion. (Azure#18555)
  add support for filtering/paging/sorting options for "list_**" methods (Azure#18302)
  [Tables] Misc client updates (Azure#18462)
  [EventHub&ServiceBus] Prepare for release (Azure#18527)
  [Communication]: Updated communication connection strings to be consistent across packages and languages (Azure#18519)
  [AppConfig] Fixing samples (Azure#18542)
  ...
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

App Configuration Azure.ApplicationModel.Configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App configuration samples issues

2 participants