0 dispatcher controller are displayed in the figure all the incoming request is in intercepted by the dispatcher servlet that works as front controller. Application.current.dispatcher refers to the wpf dispatcher of the application, and using invoke on that executes the delegate on the main thread of that application. Dispatcher.dispatchasync() and dispatcher.dispatch() are new constructs in.net core as of.net 8, the former being an extension of the latter.
So, if you're looking for the ui thread's dispatcher from a background process, don't. Be ware of dispatcher.currentdispatcher as my understanding of this is that is will return a dispatcher for the current thread not the ui thread. It is coming from windowsbase.dll which seems to be a.
The dispatcher.__init__() you were trying to call was documented here. Dispatcher.currentdispatcher gets the dispatcher for the current thread.