Free Support Forum -

Demo: Why setup AnnotationImageHandler as singleton


I have a question on the unity configuration implemented under Unity.config of the demo project.

I noticed that the AnnotationImageHandler and IUserDataHandler is configured as a singleton instead of transient. I am assuming that this is because the repository is JSON on file system. Are there any other reason why it needs to be singleton?

I am implementing DB repository and I prefer it to be transient.





Thank you for your inquiry.

I am not sure about this therefore i am forwarding your query to the product team for more details. Once we have any response from product team we will inform you here.

Have a good weekend ahead.

Warm Regards,