Adding new files to existing GS project through Studio Desktop API

Hi,

according to http://producthelp.sdl.com/SDK/ProjectAutomationApi/2017/html/5457cb35-5a41-432a-8f37-058ae23f2c4f.htm, you can add a new project file to a server project simply by checking it it. I tried it this way:

_sdlProject = new FileBasedProject(sdlProjectPath, gsUseWindowsAuthentication, gsUser, gsPassword);
var tmp = _sdlProject.AddFiles(new[] {"d:\\temp2.txt"})[0];
_sdlProject.SetFileRole(new [] {tmp.Id}, FileRole.Translatable);
var at = _sdlProject.RunAutomaticTask(new[] {tmp.Id}, AutomaticTaskTemplateIds.Scan);
_sdlProject.Save();

_sdlProject.CheckinFiles(new [] {tmp.Id}, "Temp", (sender, args) =>
{

});

However, CheckinFiles() returns immediately, and control never gets into the progress event handler. Indeed, the file does not get checked it. Am I missing something maybe? 

thanks,

Tamas