IProviderFactory - enyim/EnyimMemcached GitHub Wiki
The generic IProviderFactory<T>
interface provides custom initialization for types IMecachedNodeLocator
, ITranscoder
and IKeyTransformer
.
public interface IProviderFactory<T>
{
void Initialize(Dictionary<string, string> parameters);
T Create();
}
The Initialize's parameters argument is filled from the configuration file the following way:
<locator factory="FactoryType" arg="value1" arg2="value2">
<data>some provider specific data</data>
</locator>
- all unrecognized attributes (which is everything except
factory
andtype
) will be placed into the dictionary - if the
data
child element is present its content will be placed into the dictionary with the keyString.Empty