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); }
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); }