Want to host object not in gui thread, all methods of this object will run in this new thread. Something like that:
Thread thread = new Thread(() =>
{
MyDataInstance = new MyData();
});
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
But this will not work. Is there any nice way to do it?
(Can create window in other thread, make it invisible, and then host it there, but it seems not the best solution)