mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-25 11:50:03 +08:00
* Initial plan * Fix race condition in MonitoredItem creation Add Creating flag to prevent duplicate items when CreateItemsAsync is called concurrently. - Add internal Creating flag to MonitoredItemStatus - Check Creating flag in PrepareItemsToCreateAsync - Set Creating flag before releasing lock - Clear Creating flag in SetCreateResult (success or failure) - Add exception handling in CreateItemsAsync to clear Creating flag on errors - Add test for concurrent CreateItemsAsync calls Co-authored-by: romanett <7413710+romanett@users.noreply.github.com> * Address code review feedback - add comment for concurrent tasks constant Co-authored-by: romanett <7413710+romanett@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: romanett <7413710+romanett@users.noreply.github.com>