Exemplo n.º 1
0
 private static void OnDeleted(UserPermission permission, DeleteEventArgs args)
 {
     if (Deleted != null)
     {
         Deleted(permission, args);
     }
 }
Exemplo n.º 2
0
 static void MemberGroupService_Deleted(IMemberGroupService sender, DeleteEventArgs <IMemberGroup> e)
 {
     foreach (var m in e.DeletedEntities.ToArray())
     {
         DistributedCache.Instance.RemoveMemberGroupCache(m.Id);
     }
 }
Exemplo n.º 3
0
 static void MediaServiceDeleting(IMediaService sender, DeleteEventArgs <IMedia> e)
 {
     foreach (var item in e.DeletedEntities)
     {
         library.ClearLibraryCacheForMedia(item.Id);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 5
0
 static void MacroService_Deleted(IMacroService sender, DeleteEventArgs <IMacro> e)
 {
     foreach (var entity in e.DeletedEntities)
     {
         DistributedCache.Instance.RemoveMacroCache(entity);
     }
 }
Exemplo n.º 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);
            }
        }
Exemplo n.º 7
0
 static void UserService_DeletedUserGroup(IUserService sender, DeleteEventArgs <IUserGroup> e)
 {
     e.DeletedEntities.ForEach(x => DistributedCache.Instance.RemoveUserGroupCache(x.Id));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 10
0
 static void DomainService_Deleted(IDomainService sender, DeleteEventArgs <IDomain> e)
 {
     e.DeletedEntities.ForEach(x => DistributedCache.Instance.RemoveDomainCache(x));
 }
Exemplo n.º 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));
 }
Exemplo n.º 12
0
 private static void OnDeleted(UserPermission permission, DeleteEventArgs args)
 {
     if (Deleted != null)
     {
         Deleted(permission, args);
     }
 }
Exemplo n.º 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);
		}
Exemplo n.º 15
0
 static void PermissionDeleted(UserPermission sender, DeleteEventArgs e)
 {
     InvalidateCacheForPermissionsChange(sender);
 }
Exemplo n.º 16
0
 void Domain_AfterDelete(Domain sender, umbraco.cms.businesslogic.DeleteEventArgs e)
 {
     UmbracoHelper.ClearDomains();
 }
Exemplo n.º 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();
 }
Exemplo n.º 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));
 }
Exemplo n.º 22
0
 static void DataTypeService_Deleted(IDataTypeService sender, DeleteEventArgs <IDataTypeDefinition> e)
 {
     e.DeletedEntities.ForEach(x => DistributedCache.Instance.RemoveDataTypeCache(x));
 }
Exemplo n.º 23
0
 static void PublicAccessService_Deleted(IPublicAccessService sender, DeleteEventArgs <PublicAccessEntry> e)
 {
     DistributedCache.Instance.RefreshPublicAccess();
 }
Exemplo n.º 24
0
 static void MemberBeforeDelete(Member sender, DeleteEventArgs e)
 {
     library.ClearLibraryCacheForMember(sender.Id);
 }
Exemplo n.º 25
0
 static void MemberService_Deleted(IMemberService sender, DeleteEventArgs <IMember> e)
 {
     DistributedCache.Instance.RemoveMemberCache(e.DeletedEntities.ToArray());
 }
Exemplo n.º 26
0
 static void ContentService_DeletedBlueprint(IContentService sender, DeleteEventArgs <IContent> e)
 {
     DistributedCache.Instance.RemoveUnpublishedPageCache(e.DeletedEntities.ToArray());
 }
Exemplo n.º 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));
 }