Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Thread safety?

$
0
0
Hi,

From what I gather in the code (unless I miss something), Tweetinvi.Logic.Exceptions.ExceptionHandler is a singleton - owned by the static Tweetinvi.ExceptionHandler.

In the AddWebException, there is this line:
        _getExceptionInfos.Add(twitterException);
Isn't this unsafe as far as concurrency is concerned, then?

As a collateral note, _getExceptionInfos keeps growing - which is not desireable for the case where this is used in a server application.

Thank you very much,
C

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>