KINS, you have attached a sample with the target framework as netstandard2.1
so created the sample based on your shared code example with .Net 6.0 but still, the issue is not replicated from our end.
Find the validated sample in the attachment.
Still, if you have faced the same issue, then replicate the
reported issue on the attached sample and revert us with a detailed issue
replication procedure. these details will help us to provide an exact solution
as earlier as possible.
Attachment:
DDLWASM_7123b3ec.zip