Example #1
0
        public async Task SaveAsync(Library library)
        {
            await inner.SaveAsync(library);

            TrySaveDefaultFilePath(library);
            changeTracker.Clear();
        }
Example #2
0
        /// <summary>
        ///     Removes all items from the <see cref="T:System.Collections.Generic.ICollection`1" />.
        /// </summary>
        /// <exception cref="T:System.NotSupportedException">
        ///     The <see cref="T:System.Collections.Generic.ICollection`1" /> is read-only.
        /// </exception>
        public void Clear( )
        {
            Precheck( );

            _tracker.Clear( );
        }