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
Examples connects to data source
public void Init(IDictionary parameters, string cacheId)
{
object connString = parameters["connstring"];
_source.Connect(connString == null ? "" : connString.ToString());
}