I change the data source of a stereo map programmatically (see here ). I dissassembled the following line of code
var workspaceConnectionString = new Geodatabase(fileGdbConnPath).GetConnectionString();
to
Geodatabase gdb = new Geodatabase(fileGdbConnPath);
string workspaceConnectionString = gdb.GetConnectionString();
to better explain the problem. Creating the gdb has to be run on the MCT thread:
Geodatabase gdb = new Geodatabase(fileGdbConnPath);
Ok, I did this (see code in above link). However, when I run this line of code, it is running away on a thread, but I want to await it. How can I achieve this? This is not supported by the compiler:
Geodatabase gdb = await new Geodatabase(fileGdbConnPath);
Thanks,
Barbara