/// <summary> /// Constructs dispatching which uses windows Dispatcher for invoking incoming methods. /// </summary> /// <param name="windowsDispatcher">windows thread dispatcher. /// E.g. in case of using WPF you can provide the dispatcher associated with the UI thread /// and then GetDispatcher() method will return the dispatcher that will route all methods /// to the UI thread.<br /> /// You also can crate your own windows dispatcher that is not associated with UI. /// You can use WindowsDispatching.StartNewWindowsDispatcher() method. /// </param> public WindowsDispatching(Dispatcher windowsDispatcher) { using (EneterTrace.Entering()) { myDispatcher = new WindowsDispatcher(windowsDispatcher); } }
public Dispatcher GetThreadDispatcher() { return(WindowsDispatcher.GetThreadDispatcher()); }