Example #1
0
        public bool import_WLock(CancellationToken token)
        {
            if (ItemState == MediaItemState.DELETED || Metadata == null || Metadata.IsImported == true)
            {
                return(false);
            }

            using (MetadataDbCommands metadataCommands = new MetadataDbCommands())
            {
                Metadata = metadataCommands.create(Metadata);
            }

            return(true);
        }
Example #2
0
        public bool import_WLock(CancellationToken token)
        {          
            if (ItemState == MediaItemState.DELETED || Metadata == null || Metadata.IsImported == true)
            {
                return (false);
            }

            using (MetadataDbCommands metadataCommands = new MetadataDbCommands())
            {                   
                Metadata = metadataCommands.create(Metadata);
                   
            }                
            
            return (true);
        }