Skip to content
Permalink
Browse files

Merge pull request #51 from ragnarek81997/patch-1

Update DelegateQueue.cs in order to swap SetApartmentState by TrySetApartmentState, allowing .Net Core compatibility.
  • Loading branch information...
pruiz committed Sep 25, 2018
2 parents 390ed10 + 7dcd4a0 commit 45b35c1ad860c86360dbbfddbcf6a52538b87856
Showing with 1 addition and 1 deletion.
  1. +1 −1 WkHtmlToXSharp/DelegateQueue/DelegateQueue.cs
@@ -135,7 +135,7 @@ private void InitializeDelegateQueue(string name)
{
// Create thread for processing delegates.
delegateThread = new Thread(DelegateProcedure);
delegateThread.SetApartmentState(ApartmentState.STA);
delegateThread.TrySetApartmentState(ApartmentState.STA);

lock(lockObject)
{

0 comments on commit 45b35c1

Please sign in to comment.
You can’t perform that action at this time.