Example #1
0
        public static NHibernateChannelProviderConfigurator <TInstance, TChannel, TKey> PersistUsingNHibernate
        <TInstance, TChannel, TKey>(
            this DistributedInstanceChannelConfigurator <TInstance, TChannel, TKey> configurator)
            where TInstance : class
        {
            var providerConfigurator = new NHibernateChannelProviderConfiguratorImpl <TInstance, TChannel, TKey>(configurator);

            return(providerConfigurator);
        }
        public NHibernateChannelProviderConfiguratorImpl(
            DistributedInstanceChannelConfigurator <TInstance, TChannel, TKey> configurator)
        {
            _configurator = configurator;

            _keyAccessor = configurator.GetDistributionKeyAccessor();

            _configurator.SetProviderFactory(GetChannelProvider);
        }