How to know if a dynamic subscription alreay exists?
Hello, I wrote a service I called SetDynamicSuscriptionToStream in a thing template which generates a dynamic subscription to a stream (MyStream).
MyTemplate : ThingTemplate (<- service SetDynamicSuscriptionToStream() is in here)
MyThing : is a Thing which has MyTemplate as Base Thing Template.
In MyTemplate there is a ThingStart subscription which runs SetDynamicSuscriptionToStream().
Now, my problem is anytime I work on MyTemplate and update it, MyThing is automatically restarted and SetDynamicSuscriptionToStream() is triggered and it tries to create the dynamic subscription again, so I get an error message
There is already a subscription to MyStream for MyThing:Type.Thing:Entity.MyStreamEvent.MyEvent
Is there a way to check if a dynamic subscription exists so that I don't get this error?
Thanks

