Low-level sample code showcases how the generic host invoker can be used directly .