Note: This short post is a self reminder about a feature that has just been added, I’ll probably use it in the documentation.
Our friend German Schuager has offered another cool feature, namely IConfigurationContributor. This interface allows implementors to change the Configuration instance _just before_ the ISessionFactory is created.
/// <summary>
/// Allows implementors to modify <see cref="Configuration"/>
/// </summary>
public interface IConfigurationContributor
{
/// <summary>
/// Modifies available <see cref="Configuration"/> instances.
/// </summary>
/// <param name="name">Name of the session factory</param>
/// <param name="config">The config for sessionFactory</param>
void Process(string name,Configuration config);
}
Implementors can modify the Configuration depending on the name.
e1e10f37-32e8-4f72-9562-e9d0304617e3|0|.0
castle, nhibernate integration, documentation