Azure-Samples / Azure-Samples/communication-services-javascript-quickstarts
Obsolete property in send email sample
- 主要语言
- JavaScript
- 星标
- 108
- 派生
- 207
- PR 合并指标
- 30 天内没有已合并 PR
描述
> Please provide us with the following information:
> ---------------------------------------------------------------
### This issue is for a: (mark with an `x`)
```
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```
`poller.getOperationState().isStarted` was removed in a version of azure/communication-email as of the official Microsoft documentation points in favor of `poller.getOperationState().status !== "running"`. Reporting this here as the provided sample code still references this older property and may cause issues for developers who do not catch the notice in the documentation and rely solely on this sample.
Reference in MS docs: https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/email/send-email?tabs=windows%2Cconnection-string%2Csend-email-and-get-status-async%2Casync-client&pivots=programming-language-javascript
Issue in sample code file: `send-email/send-email.js` Line 27
> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.
贡献指南
调研方向
打开第 27 行的 send-email/send-email.js,并将示例与链接的 Microsoft 文档进行比较。更新示例,使其使用当前的电子邮件轮询器状态属性,然后验证过时的 isStarted 引用已被移除,并且示例仍然反映文档中所述的流程。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- azure, javascript
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 活跃
- 描述清晰度
- 描述清楚
- 新手友好度
- 90/100