Files
speckle-sharp-connectors/Sdk/Speckle.Connectors.Common/Threading/ThreadOptions.cs
T
Oğuzhan Koral 93246157c7 Fix: threading on browser bridge + remove event aggr (#574)
* Fix threading bug

* untangle revit

* revert rhino

* revert autocad

* revert rest

* remove event agg and rhino implementation

* remove event aggr from revit

* remove event aggr from autocad and civil

* remove event aggr tests

* remove event aggr from tekla

* Remove event aggr for navis

* remove event aggr from csi etabs

* remove event aggr for arcgis

* remove remaining pieces

* push autocad to run operations on main thread

* adds teklaidlemanager

* bring navis idle manager back

* run send on main

* remove unused function

---------

Co-authored-by: Dogukan Karatas <karatasdogukan@gmail.com>
2025-02-10 17:50:26 +03:00

12 lines
353 B
C#

using Speckle.InterfaceGenerator;
using Speckle.Sdk;
using Speckle.Sdk.Host;
namespace Speckle.Connectors.Common.Threading;
[GenerateAutoInterface]
public class ThreadOptions(ISpeckleApplication speckleApplication) : IThreadOptions
{
public bool RunReceiveBuildOnMainThread => speckleApplication.HostApplication != HostApplications.Rhino.Name;
}