How do I programmatically find the UUID for a Workspace
I am creating an extension in which I need to create a new Workspace and then attach that Workspace to a Build Definition. I can create the Workspace but I can't figure out how to find the UUID so it can be added to the Build Definition.
When I create the Workspace from the Workspace Manager, I get an object that implements IWorkspaceConnection. If I have an object the implements IWorkspace I can get the UUID of the Workspace. However, if I cast the object that I get from the Workspace Manager to IWorkspace I get a Class Cast exception.