Method Init
Init(IDictionary, String)
Perform tasks like allocating resources or acquiring connections, etc.
Declaration
void Init(IDictionary parameters, string cacheId)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | parameters | Startup parameters defined in the configuration. |
System.String | cacheId | Id of the cache. |
Examples
The following example connects to the data source.
public void Init(IDictionary parameters, string cacheId)
{
object connString = parameters["connstring"];
_source.Connect(connString == null ? "" : connString.ToString());
}