Waits for SetDefaultTimeout(TimeSpan) till at least one GSM is discovered and returns it.

C# | Visual Basic | Visual C++ | J# |
IGridServiceManager WaitForAtLeastOne()
Function WaitForAtLeastOne As IGridServiceManager
IGridServiceManager^ WaitForAtLeastOne()
IGridServiceManager WaitForAtLeastOne()

One of the discovered managers or null if the timeout elapsed.