Exemple #1
0
        /// <inheritdoc />
        public void Complete(IConnectionFactory factory, bool success)
        {
            if (Factory != factory)
            {
                return;
            }

            _wordsPartsHelper?.Dispose();
            _wordsPartsHelper = null;
            Factory           = null;
        }
Exemple #2
0
        /// <inheritdoc />
        public void Prepare(IPersister persister, IConnectionFactory factory)
        {
            // no readonly event posible here.
            if (factory.IsReadOnly)
            {
                return;
            }

            Factory = factory;

            // sanity check.
            Contract.Assert(_wordsPartsHelper == null);

            _wordsPartsHelper = new WordsPartsHelper(factory, TableName);
        }