Beispiel #1
0
 private static void OnDeleted(UserPermission permission, DeleteEventArgs args)
 {
     if (Deleted != null)
     {
         Deleted(permission, args);
     }
 }
Beispiel #2
0
 static void MemberGroupService_Deleted(IMemberGroupService sender, DeleteEventArgs <IMemberGroup> e)
 {
     foreach (var m in e.DeletedEntities.ToArray())
     {
         DistributedCache.Instance.RemoveMemberGroupCache(m.Id);
     }
 }
 static void MediaServiceDeleting(IMediaService sender, DeleteEventArgs <IMedia> e)
 {
     foreach (var item in e.DeletedEntities)
     {
         library.ClearLibraryCacheForMedia(item.Id);
     }
 }
Beispiel #4
0
 /// <summary>
 /// Removes cache for template
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 static void FileService_DeletedTemplate(IFileService sender, DeleteEventArgs <ITemplate> e)
 {
     foreach (var x in e.DeletedEntities)
     {
         DistributedCache.Instance.RemoveTemplateCache(x.Id);
     }
 }
Beispiel #5
0
 static void MacroService_Deleted(IMacroService sender, DeleteEventArgs <IMacro> e)
 {
     foreach (var entity in e.DeletedEntities)
     {
         DistributedCache.Instance.RemoveMacroCache(entity);
     }
 }
Beispiel #6
0
        static void RelationService_DeletedRelationType(IRelationService sender, DeleteEventArgs <IRelationType> args)
        {
            var dc = DistributedCache.Instance;

            foreach (var e in args.DeletedEntities)
            {
                dc.RemoveRelationTypeCache(e.Id);
            }
        }
Beispiel #7
0
 static void UserService_DeletedUserGroup(IUserService sender, DeleteEventArgs <IUserGroup> e)
 {
     e.DeletedEntities.ForEach(x => DistributedCache.Instance.RemoveUserGroupCache(x.Id));
 }
Beispiel #8
0
 /// <summary>
 /// Fires when a media type is deleted
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 static void ContentTypeService_DeletedMediaType(IContentTypeService sender, DeleteEventArgs <IMediaType> e)
 {
     e.DeletedEntities.ForEach(x => DistributedCache.Instance.RemoveMediaTypeCache(x));
 }
Beispiel #9
0
 /// <summary>
 /// Fires when a member type is deleted
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 static void MemberTypeService_Deleted(IMemberTypeService sender, DeleteEventArgs <IMemberType> e)
 {
     e.DeletedEntities.ForEach(contentType => DistributedCache.Instance.RemoveMemberTypeCache(contentType));
 }
Beispiel #10
0
 static void DomainService_Deleted(IDomainService sender, DeleteEventArgs <IDomain> e)
 {
     e.DeletedEntities.ForEach(x => DistributedCache.Instance.RemoveDomainCache(x));
 }
Beispiel #11
0
 /// <summary>
 /// Fires when a langauge is deleted
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 static void LocalizationService_DeletedLanguage(ILocalizationService sender, DeleteEventArgs <ILanguage> e)
 {
     e.DeletedEntities.ForEach(x => DistributedCache.Instance.RemoveLanguageCache(x));
 }
Beispiel #12
0
 private static void OnDeleted(UserPermission permission, DeleteEventArgs args)
 {
     if (Deleted != null)
     {
         Deleted(permission, args);
     }
 }
Beispiel #13
0
 static void FileService_DeletedStylesheet(IFileService sender, DeleteEventArgs <Stylesheet> e)
 {
     e.DeletedEntities.ForEach(x => DistributedCache.Instance.RemoveStylesheetCache(x));
 }
		private void DocumentOnAfterDelete(Document sender, DeleteEventArgs e)
		{
			ClearCaches(sender);
		}
Beispiel #15
0
 static void PermissionDeleted(UserPermission sender, DeleteEventArgs e)
 {
     InvalidateCacheForPermissionsChange(sender);
 }
Beispiel #16
0
 void Domain_AfterDelete(Domain sender, umbraco.cms.businesslogic.DeleteEventArgs e)
 {
     UmbracoHelper.ClearDomains();
 }
Beispiel #17
0
 static void MediaService_Deleted(IMediaService sender, DeleteEventArgs <IMedia> e)
 {
     DistributedCache.Instance.RemoveMediaCachePermanently(e.DeletedEntities.Select(x => x.Id).ToArray());
 }
 static void MemberBeforeDelete(Member sender, DeleteEventArgs e)
 {
     library.ClearLibraryCacheForMember(sender.Id);
 }
 private void DocumentOnAfterDelete(Document sender, DeleteEventArgs e)
 {
     ClearCaches(sender);
 }
 void Domain_AfterDelete( Domain sender, umbraco.cms.businesslogic.DeleteEventArgs e ) {
   Compatibility.Domain.InvalidateCache();
 }
Beispiel #21
0
 /// <summary>
 /// Removes cache for template
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 static void FileService_DeletedTemplate(IFileService sender, DeleteEventArgs <ITemplate> e)
 {
     e.DeletedEntities.ForEach(x => DistributedCache.Instance.RemoveTemplateCache(x.Id));
 }
Beispiel #22
0
 static void DataTypeService_Deleted(IDataTypeService sender, DeleteEventArgs <IDataTypeDefinition> e)
 {
     e.DeletedEntities.ForEach(x => DistributedCache.Instance.RemoveDataTypeCache(x));
 }
Beispiel #23
0
 static void PublicAccessService_Deleted(IPublicAccessService sender, DeleteEventArgs <PublicAccessEntry> e)
 {
     DistributedCache.Instance.RefreshPublicAccess();
 }
 static void MemberBeforeDelete(Member sender, DeleteEventArgs e)
 {
     library.ClearLibraryCacheForMember(sender.Id);
 }
Beispiel #25
0
 static void MemberService_Deleted(IMemberService sender, DeleteEventArgs <IMember> e)
 {
     DistributedCache.Instance.RemoveMemberCache(e.DeletedEntities.ToArray());
 }
Beispiel #26
0
 static void ContentService_DeletedBlueprint(IContentService sender, DeleteEventArgs <IContent> e)
 {
     DistributedCache.Instance.RemoveUnpublishedPageCache(e.DeletedEntities.ToArray());
 }
Beispiel #27
0
 static void LocalizationService_DeletedDictionaryItem(ILocalizationService sender, DeleteEventArgs <IDictionaryItem> e)
 {
     e.DeletedEntities.ForEach(x => DistributedCache.Instance.RemoveDictionaryCache(x.Id));
 }
 /// <summary>
 /// Fires when a content type is deleted
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 static void ContentTypeServiceDeletedContentType(IContentTypeService sender, DeleteEventArgs <IContentType> e)
 {
     e.DeletedEntities.ForEach(contentType => DistributedCache.Instance.RemoveContentTypeCache(contentType));
 }