I\'m working with web services so its necessary for me to extend session length/reconnect and get large datasets back etc. Sometimes this can be lengthy so I wanted it in a
You need a delegate of type SendOrPostCallback. Which is pretty awkward, it only takes a single argument of type object. You definitely ought to look at the Task<> class available in .NET 4 to make this easier. Or use a lambda, like this:
string conn_name = "foo";
uiContext.Post(new SendOrPostCallback((o) => {
updateConnStatus(conn_name, true);
}), null);
The code between the { braces } executes on the UI thread.