You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just modified the methods HandleNewCall() in TapiLine.cs and ProcessTapiMessages() in TapiManager.cs slightly, such that the whole library should work under NET 7.0 now.
have you tested this?
I'd guess that it won't compile because you cannot use await in a non-async method.
Also, from what I get, the async calls (BeginInvoke) were not awaited before. So, the behavior would change.
I've also tried to make it run under .NET 9.0 after migrating the library to .NET Standard 2.0 and replacing BeginInvoke by Task.Run, but without awaiting.
The result was that my application works only intermittently. The application listens for incoming calls. The first call usually comes in without problems, but subsequent calls don't. Sometimes, it recovers after some time, sometimes, it doesn't.
Has someone successfully used this library (or anything else based on Tapi3.dll) used under .NET (the new one based on .NET Core)?
It started working after I replaced Task.Run by Task.Factory.StartNew and passed TaskCreationOptions.LongRunning to it.
I don’t know the exact reason why this makes a difference - maybe before, it did not create a new thread every time.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi,
I just modified the methods HandleNewCall() in TapiLine.cs and ProcessTapiMessages() in TapiManager.cs slightly, such that the whole library should work under NET 7.0 now.
Regards,