Closed
Description
We need a way to configure NHIbernate to be used by all persisters, currently If a user want to use NHIbernate for everything they end-up with:
.UseNHibernateSubscriptionPersister()
.UseNHibernateTimeoutPersister()
.UseNHibernateSagaPersister()
.UseNHibernateGatewayPersister()
.UseNHibernateGatewayDeduplication()
Plan of attack
-
Obsolete
NHibernatePersistence.UseAsDefault()
-
Introduce a UsingPersistence (very similar to
UsingTransport<T>
), eg:public class EndpointConfig : IConfigureThisEndpoint, AsA_Server, UsingTransport<Msmq>, UsingPersistence<NHibernate> { }
-
Introduce a
UsePersistence<T>
(very similar toUseTransport<T>
), eg:Configure.With() .DefaultBuilder() .UseTransport<Msmq>() .UsePersitence<NHibernate>();
See also overrides to implement based on UseTransport
Activity