RoslynCompilationService should set the generated code when compilation succeeds

Fixes #895
add something like "_OnSecondCall" in name to highlight reason for difference from the above test