It's naturally a bit messy because we expose the c++ cli to csharp, so it can be invoked via Spark.Console (cs) or sparkd