Ejemplo n.º 1
0
        /// <summary>
        /// When in repository mode, this disposes the Writer (but not the repository).
        /// </summary>
        public void Dispose()
        {
            _ectx.Assert((_ent == null) == !InRepository);

            // When in single stream mode, we don't own the Writer.
            if (InRepository)
            {
                Writer.Dispose();
                _ent.Dispose();
            }
        }