Home >

NHibernate Integration Facility - IConfigurationContributor

14. February 2009

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.

, ,

Comments

10/27/2010 8:41:52 PM #
Great job on this post man! I haven't read a very informative article like this. Amazing.!
11/3/2010 3:58:52 PM #
This interface allows implementors to change the Configuration instance _just before_ the ISessionFactory is created.
11/20/2010 3:46:58 AM #
Hello People! Your blog is awesome! I would like to visit it everyday. It's very informative and amazing
12/6/2010 3:49:43 PM #
This fight of Khan vs Maidana will be on December 11. Let us watch it live.
1/10/2011 3:58:09 AM #
I didn't know Implementors can modify the Configuration depending on the name... good tip.
3/22/2011 10:35:12 PM #
I am just sick and tired of the unnecessary comments. Web site owners need to disregard the negative opinions and continue to keep up the excellent work.
Comments are closed