Example #1
0
        protected override void Update()
        {
            if (_tagsImporter == null)
            {
                return;
            }

            TagSourceItem[] tags = _tagsImporter
                                   .GetTagsAsync()
                                   .Result
                                   .ToArray();

            TagSourceCache.Update(InstanceId, tags, null, false);
        }
        protected override void Update()
        {
            var tags = TagsImporter.GetTags().ToArray();

            if (_customNotes != null)
            {
                tags = tags.Select(x =>
                {
                    x.Notes = _customNotes;
                    return(x);
                }).ToArray();
            }

            TagSourceCache.Update(InstanceId, tags, null, true);
        }
        protected override void Update()
        {
            /*
             *
             * Add your implementation of what happens on update.
             *
             * This is the main function of the plugin, it is responsible to get tags from your service
             *
             * After you get your tags from the service call TagSourceCache.Update
             *
             */

            TagSourceItem[] items = WebReader.GetItemsAsync(_settings.Url).Result;

            TagSourceCache.Update(InstanceId, items, null, true);
        }
        protected override async void Update()
        {
            var tags = await TagsImporter.GetTags();

            TagSourceCache.Update(InstanceId, tags, null, true);
        }