I'm having issues connecting to websockets , I have developed my logic in .NET and refereneced the dll but control behaves weird when I connect and recieve data from websocket. I have explained the entire issue when in below attached code snippet , It would be really helpful if some one can help me with it and guide ,I have been working on this for a while for over a month now and im stuck again after doing the hard bit , and I honestly feel sad when people over here dont step up to help .My apologies !
It seems that you're talking purely about C#. Please test your code from a C# class library, for example. If it behaves the same, you'll see that your question isn't about F&O and you should rather ask in a C# forum.
Your description of the problem isn't very clear. I suspect that your statement "just comes out and takes me D365 front end" actually means that an exception is thrown. Unfortunately, your exception handling code is the worth possible - you handle the exception by ignoring it. You may be better off if you remove your try/catch statement. Otherwise fix it to do something useful.
If you find that your C# library works but it fails when called from X++, show us your X++ code.
Also, using the static variable sounds like a bad design to me. You should use a method return value instead (technically an asynchronous task result when we're talking about asynchronous methods).
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.