Please see examples/Org.WebSite.Samples/ExecutorSample.cpp