Skip to content

NHibernate role #36

Closed
Closed
@johnsimons

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 to UseTransport<T>), eg:

    Configure.With()
                     .DefaultBuilder()
                     .UseTransport<Msmq>()
                     .UsePersitence<NHibernate>();

    See also overrides to implement based on UseTransport

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions