Connection String ConfiguratorIs Provided By Method
Sets a method that is responsible for returning a connection string. This method is called each time
a connection string is required for an operation.
Definition
Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public void IsProvidedBy(
Func<string> connectionStringProvider
)VB
Public Sub IsProvidedBy (
connectionStringProvider As Func(Of String)
)Parameters
Exceptions
| ArgumentNullException | Occurs if the given method is null. |
| InvalidOperationException | Occurs in case the connection string has already been set. |