File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ using System ;
12using System . Threading ;
23using Shuttle . Core . Configuration ;
34using Shuttle . Core . Logging ;
@@ -36,7 +37,19 @@ public void Start()
3637
3738 _thread = new Thread ( Work ) { Name = _name } ;
3839
39- _thread . SetApartmentState ( ApartmentState . MTA ) ;
40+ try
41+ {
42+ _thread . SetApartmentState ( ApartmentState . MTA ) ;
43+ }
44+ catch ( Exception ex )
45+ {
46+ #if ! NETCOREAPP2_0
47+ _log . Warning ( ex . Message ) ;
48+ #else
49+ _log . Information ( ex . Message ) ;
50+ #endif
51+ }
52+
4053 _thread . IsBackground = true ;
4154 _thread . Priority = ThreadPriority . Normal ;
4255
Original file line number Diff line number Diff line change 2929[ assembly: AssemblyTitle ( ".NET Standard 2.0" ) ]
3030#endif
3131
32- [ assembly: AssemblyVersion ( "10.0.0 .0" ) ]
32+ [ assembly: AssemblyVersion ( "10.0.1 .0" ) ]
3333[ assembly: AssemblyCopyright ( "Copyright © Eben Roux 2018" ) ]
3434[ assembly: AssemblyProduct ( "Shuttle.Core.Threading" ) ]
3535[ assembly: AssemblyCompany ( "Shuttle" ) ]
3636[ assembly: AssemblyConfiguration ( "Release" ) ]
37- [ assembly: AssemblyInformationalVersion ( "10.0.0 " ) ]
37+ [ assembly: AssemblyInformationalVersion ( "10.0.1 " ) ]
3838[ assembly: ComVisible ( false ) ]
You can’t perform that action at this time.
0 commit comments