Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Event subscriptions - best practices

$
0
0
static void DataEvents_OnStoreChanged(object sender, StoreEventArgs storeEventArgs)
{
    if (!storeEventArgs.DataEventsFired)
    {
        // an external update event happened - DataEvents_OnBeforeAdd not fired
        // here a complete cache flush could be done
    }

    return;
}
Could anyone please give me an example on how I could get the contents of the changed IPage when using OnStoreChanged Event? I need to know the IPage ID, Title, Description. When I run this event I see I get the event triggred two times. One for the published scope and one for the unpublished scope, even it I just do a publish for the IPage item.

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>