Flush() public method

public Flush ( Kooboo.CMS.Sites.Models.Site site ) : void
site Kooboo.CMS.Sites.Models.Site
return void
示例#1
0
        public void ExportLabelsToDisk(Site site)
        {
            if (!(_rawLabelProvider is LabelProvider))
            {
                var fileLabelProvider = new LabelProvider();
                fileLabelProvider.Flush(site);

                foreach (var item in _rawLabelProvider.All(site))
                {
                    fileLabelProvider.Add(item);
                }
            }
        }
示例#2
0
        public void ExportLabelsToDisk(Site site)
        {
            if (!(_rawLabelProvider is LabelProvider))
            {
                var fileLabelProvider = new LabelProvider();
                fileLabelProvider.Flush(site);

                foreach (var item in _rawLabelProvider.All(site))
                {
                    fileLabelProvider.Add(item);
                }
            }
        }