예제 #1
0
        public int ForEach(Action <AssetMetadata> action, int start, int count)
        {
            int rowCount = 0;

            foreach (AssetMetadata metadata in m_assetProvider.FetchAssetMetadataSet(start, count))
            {
                // We set the ContentType here because Utils is only in
                // AssetInventoryServer. This should be moved to the DB
                // backends when the equivalent of SLAssetTypeToContentType is
                // in OpenSim.Framework or similar.
                metadata.ContentType = Utils.SLAssetTypeToContentType(metadata.Type);

                action(metadata);
                ++rowCount;
            }

            return(rowCount);
        }