title: How to add event listener via Fluent NHibernate?
body: <p>I want to add an event listener (<code>IPreUpdateEventListener</code>) to add NHibernate but I can't seem to find an example when using a fluent configuration.</p>
  
  <p>I want to be able to add the listener when I create the session factory, e.g. when the following code is execute.</p>
  
  <pre><code>_sessionFactory = Fluently.Configure()
      .Database(MsSqlConfiguration.MsSql2005.ConnectionString(connectionString).ShowSql())
      .Mappings(m =&gt; m.FluentMappings.AddFromAssemblyOf&lt;IEntity&gt;())
      .BuildSessionFactory();
  </code></pre>
  
  <p>Anyone know how to do this?</p>