Skip to content

Commit cdfce3c

Browse files
committed
NH-3807 - No SetApartmentState in Linux
1 parent 9d9bd33 commit cdfce3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/NHibernate.Test/CrossThreadTestRunner.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ public CrossThreadTestRunner(ThreadStart start)
2626
{
2727
_start = start;
2828
_thread = new Thread(Run);
29+
#if !NETCOREAPP2_0
2930
_thread.SetApartmentState(ApartmentState.STA);
31+
#endif
3032
}
3133

3234
public void Start()

0 commit comments

Comments
 (0)