Ah, shoot. Looks like an oversight... we didn't add an extension for the wrapper for 9.2. However, the call to CreateConnectionRA92 does exist. You will need to do a bit extra work here. Bear with me (this might take a bit of going back and forth). If this gets too complicated I'll dust off ye olde WF SDK and try this myself, but I'm going straight off the SDK code itself here. Anyways, to get the ConnectionWrapper for 9.2, try the following... bear with me:
1) Somewhere in your code define this private static method:
private static ConnectionWrapper OpenConnectionRA92(ICustomActivity activity, ConnectionProfile profile)
{
ConnectionWrapper wrapper = ConnectionWrapper.CreateConnectionRA92(profile);
if (activity != null)
{
activity.AddDisposableRuntimeItem(wrapper);
}
return wrapper;
}
2) To use that we need to get the connection profile manually (usually the utility method did that for us). This isn't much work at all tho:
private static ConnectionProfile GetConnectionProfile(ActivityExecutionContext context) {
ConnectionProfile profile = null;
IProfileActivityInternal profileActivity = context.Activity as IProfileActivityInternal;
if (profileActivity != null)
{
profile = profileActivity.GetProfile(context);
}
return profile;
}
3) Now we use both of these. In your code, replace
using (ConnectionWrapper wrapper = executionContext.OpenConnection83())
with
ConnectionProfile profile = GetConnectionProfile(context);
using (ConnectionWrapper wrapper = OpenConnectionRA92(context.Activity, profile))
Basically I'm doing what the extension functions themselves are doing. It might take some additional tweaking... I'm writing this whole thing only by analysis of the code itself =). You may also want to do some null checking there, particularly when doing type checks such as "context.Activity as IProfileActivityInternal" and such, for the sake of robustness.
Let me know if this works, or which error you get instead. Sorry about how tricky this is... I filed a bug fix request about the missing OpenConnectionRA92 method. Can't believe nobody noticed this till now... Doh!