Attila Kiskó edited this page Dec 13, 2010 · 1 revision

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>
  • all unrecognized attributes (which is everything except factory and type) will be placed into the dictionary
  • if the data child element is present its content will be placed into the dictionary with the key String.Empty