testconnection in dynamic driver
Hello,
I'm writing a LINQPad dynamic driver for OData endpoints mostly as an exercise as my c#/.Net skills are quite limited and I have some issues with other drivers. So far so good, everything seems to work quite good, but I have a probably silly question.
How do I test the connection from the ConnectionDialog? I mean I saw in the documentation that there is this helper below, but what it does? Are there any examples somewhere? Or should I create my own method somehow?
public static string TestConnection (IConnectionInfo cxInfo, out string[] loadedAssemblies)
thanks!
John
Comments
The TestConnection helper method instantiates the data context to ensure that things such as assembly resolution work. You can add your own code in addition to calling this method to perform a more thorough test.