コード例 #1
0
        public override void Notify(MediaCacheRefresher.JsonPayload[] payloads, out bool anythingChanged)
        {
            foreach (var payload in payloads)
            {
                PublishedMediaCache.ClearCache(payload.Id);
            }

            anythingChanged = true;
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PublishedSnapshot"/> class with a content cache
 /// and a media cache.
 /// </summary>
 public PublishedSnapshot(
     PublishedContentCache contentCache,
     PublishedMediaCache mediaCache,
     PublishedMemberCache memberCache,
     DomainCache domainCache)
 {
     Content = contentCache;
     Media   = mediaCache;
     Members = memberCache;
     Domains = domainCache;
 }