Dispatcher

Execute code on the UI thread

Reference the library

C#
using CI.WSANative.Dispatchers;

Initialise

Initialise must be called first - it need only ever be called once

C#
WSANativeDispatcher.Initialise();

Run an action on the ui thread

C#
WSANativeDispatcher.Invoke(() => { });