I have used eventpipes to handle value changed events. My issue is that , on click of a button, I want to stop the value change events. I have tried to detach the OnNewValueChange() event like this :
myEvents.OnNewValue -= myValHandler as PISDK._DEventPipeEvents_OnNewValueEventHandler;
But id did not work.
Can you please suggest me the workaround for this?