public static IEnumerable<ConnectionParameter> GetConnectionParameters(
this (string assemblyName, string typeName) src
)
<ExtensionAttribute>
Public Shared Function GetConnectionParameters (
src As (assemblyName As String, typeName As String)
) As IEnumerable(Of ConnectionParameter)
public:
[ExtensionAttribute]
static IEnumerable<ConnectionParameter^>^ GetConnectionParameters(
ValueTuple<String^, String^> src
)
Gemstone.Timeseries.Adapters.ConnectionParameterExtensions.GetConnectionParameters = function(src);
The src tuple should contain the assembly name and type name of the desired adapter. The assembly will be loaded, if needed, and the type will be used to get connection string parameters. Note that the 'assemblyName' and 'typeName' parameters correspond to the 'AssemblyName' and 'TypeName' fields in the database model used to load a specifically configured adapter instance.
Only public, instance properties are considered for returned parameter list. The DefaultValue will be populated with the configured default value of the property while the Value remains unassigned. Use ApplyConnectionString(IEnumerableConnectionParameter, String) or ApplySettings(IEnumerableConnectionParameter, DictionaryString, String) to assign values from a connection string or settings dictionary, respectively.
Call method like this:
var assemblyName = "FileAdapters.dll";
var typeName = "FileAdapters.ProcessLauncher";
var params = (assemblyName, typeName).GetConnectionParameters();
Note that the AdapterCache automatically loads and caches adapter types along with their connection parameters, so this method is not typically directly used.