<commit_before>﻿using NServiceBus;
using NServiceBus.Persistence;

class ConfiguringNHibernate
{
    public void Foo()
    {
        #region ConfiguringNHibernate

        var config = new BusConfiguration();

        config.UsePersistence<NHibernatePersistence>()
            .For(
                Storage.Sagas,
                Storage.Subscriptions,
                Storage.Timeouts,
                Storage.Outbox,
                Storage.GatewayDeduplication);

        #endregion
    }
}<commit_msg>code snippet for new API<commit_after>﻿using NServiceBus;
using NServiceBus.Persistence;

class ConfiguringNHibernate
{
    public void Version_5_0()
    {
        #region ConfiguringNHibernate 5.0

        var config = new BusConfiguration();

        config.UsePersistence<NHibernatePersistence>()
            .For(
                Storage.Sagas,
                Storage.Subscriptions,
                Storage.Timeouts,
                Storage.Outbox,
                Storage.GatewayDeduplication);

        #endregion
    }

    public void Version_5_2()
    {
        #region ConfiguringNHibernate 5.2

        var config = new BusConfiguration();

        config.UsePersistence<NHibernatePersistence, StorageType.Sagas>();
        config.UsePersistence<NHibernatePersistence, StorageType.Subscriptions>();
        config.UsePersistence<NHibernatePersistence, StorageType.Timeouts>();
        config.UsePersistence<NHibernatePersistence, StorageType.Outbox>();
        config.UsePersistence<NHibernatePersistence, StorageType.GatewayDeduplication>();

        #endregion
    }
}
{'fraction_non_alphanumeric': 0.07939508506616257, 'fraction_numerical': 0.005040957781978576, 'mean_word_length': 2.364406779661017, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2892766', 'n_tokens_mistral': 444, 'n_tokens_neox': 400, 'n_words': 72}