Closed hideokamoto closed 4 years ago
To add a new parameter named defaultAttributes. We can easy to initialize persistence attributes to use it.
defaultAttributes
We have to initialize persistence attributes by own code.
let attributes = await attributesManager.getPersistentAttributes() if (!attributes) { attributes = { invocationCount: 1 } attributesManager.setPersistenceAttributes(attributes) }
We can easy to initialize the attributes
const attributes = await attributesManager.getPersistentAttributes(true, { invocationCount: 1 } )
See my test code in this PR.
@hideokamoto
Thanks for this PR. This feature looks reasonable and useful, will do the merge and get it out on next SDK release.
Thanks, Shen
Description
To add a new parameter named
defaultAttributes
. We can easy to initialize persistence attributes to use it.Motivation and Context
Before
We have to initialize persistence attributes by own code.
After
We can easy to initialize the attributes
Testing
See my test code in this PR.
Screenshots (if appropriate)
Types of changes
Checklist
License