From d6b3d115b0ce39e65019d7eeb4f4447b2952dc88 Mon Sep 17 00:00:00 2001 From: Morten Christensen Date: Tue, 14 Jan 2014 15:03:52 +0100 Subject: [PATCH] Correcting the naming of events in the PackagingService --- src/Umbraco.Core/Services/PackagingService.cs | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/Umbraco.Core/Services/PackagingService.cs b/src/Umbraco.Core/Services/PackagingService.cs index f1ba56b049..bb658c23f8 100644 --- a/src/Umbraco.Core/Services/PackagingService.cs +++ b/src/Umbraco.Core/Services/PackagingService.cs @@ -93,7 +93,7 @@ namespace Umbraco.Core.Services } if(raiseEvents) - ContentExported.RaiseEvent(new SaveEventArgs(xml, false), this); + ExportedContent.RaiseEvent(new SaveEventArgs(xml, false), this); return xml; } @@ -181,7 +181,7 @@ namespace Umbraco.Core.Services _contentService.Save(contents, userId); if(raiseEvents) - ContentImported.RaiseEvent(new SaveEventArgs(contents, false), this); + ImportedContent.RaiseEvent(new SaveEventArgs(contents, false), this); return contents; } @@ -195,7 +195,7 @@ namespace Umbraco.Core.Services _contentService.Save(contents, userId); if(raiseEvents) - ContentImported.RaiseEvent(new SaveEventArgs(contents, false), this); + ImportedContent.RaiseEvent(new SaveEventArgs(contents, false), this); return contents; } @@ -398,7 +398,7 @@ namespace Umbraco.Core.Services tabs); if (raiseEvents) - ContentTypeExported.RaiseEvent(new SaveEventArgs(xml, false), this); + ExportedContentType.RaiseEvent(new SaveEventArgs(xml, false), this); return xml; } @@ -478,7 +478,7 @@ namespace Umbraco.Core.Services } if (raiseEvents) - ContentTypeImported.RaiseEvent(new SaveEventArgs(list, false), this); + ImportedContentType.RaiseEvent(new SaveEventArgs(list, false), this); return list; } @@ -804,7 +804,7 @@ namespace Umbraco.Core.Services xml.Add(new XAttribute("DatabaseType", dataTypeDefinition.DatabaseType.ToString())); if (raiseEvents) - DataTypeExported.RaiseEvent(new SaveEventArgs(xml, false), this); + ExportedDataType.RaiseEvent(new SaveEventArgs(xml, false), this); return xml; } @@ -888,7 +888,7 @@ namespace Umbraco.Core.Services } if (raiseEvents) - DataTypeImported.RaiseEvent(new SaveEventArgs(list, false), this); + ImportedDataType.RaiseEvent(new SaveEventArgs(list, false), this); return list; } @@ -974,7 +974,7 @@ namespace Umbraco.Core.Services } if (raiseEvents) - DictionaryItemExported.RaiseEvent(new SaveEventArgs(xml, false), this); + ExportedDictionaryItem.RaiseEvent(new SaveEventArgs(xml, false), this); return xml; } @@ -1004,7 +1004,7 @@ namespace Umbraco.Core.Services items.AddRange(ImportDictionaryItem(dictionaryItemElement, languages, raiseEvents)); if (raiseEvents) - DictionaryItemImported.RaiseEvent(new SaveEventArgs(items, false), this); + ImportedDictionaryItem.RaiseEvent(new SaveEventArgs(items, false), this); return items; } @@ -1107,7 +1107,7 @@ namespace Umbraco.Core.Services new XAttribute("FriendlyName", language.CultureName)); if (raiseEvents) - LanguageExported.RaiseEvent(new SaveEventArgs(xml, false), this); + ExportedLanguage.RaiseEvent(new SaveEventArgs(xml, false), this); return xml; } @@ -1143,7 +1143,7 @@ namespace Umbraco.Core.Services } if (raiseEvents) - LanguageImported.RaiseEvent(new SaveEventArgs(list, false), this); + ImportedLanguage.RaiseEvent(new SaveEventArgs(list, false), this); return list; } @@ -1214,7 +1214,7 @@ namespace Umbraco.Core.Services } if(raiseEvents) - MediaExported.RaiseEvent(new SaveEventArgs(xml, false), this); + ExportedMedia.RaiseEvent(new SaveEventArgs(xml, false), this); return xml; } @@ -1395,7 +1395,7 @@ namespace Umbraco.Core.Services _fileService.SaveTemplate(templates, userId); if(raiseEvents) - TemplateImported.RaiseEvent(new SaveEventArgs(templates, false), this); + ImportedTemplate.RaiseEvent(new SaveEventArgs(templates, false), this); return templates; } @@ -1430,7 +1430,7 @@ namespace Umbraco.Core.Services /// /// Occurs after Content is Imported and Saved /// - public static event TypedEventHandler> ContentImported; + public static event TypedEventHandler> ImportedContent; /// /// Occurs before Exporting Content @@ -1440,7 +1440,7 @@ namespace Umbraco.Core.Services /// /// Occurs after Content is Exported to Xml /// - public static event TypedEventHandler> ContentExported; + public static event TypedEventHandler> ExportedContent; /// /// Occurs before Exporting Media @@ -1450,7 +1450,7 @@ namespace Umbraco.Core.Services /// /// Occurs after Media is Exported to Xml /// - public static event TypedEventHandler> MediaExported; + public static event TypedEventHandler> ExportedMedia; /// /// Occurs before Importing ContentType @@ -1460,7 +1460,7 @@ namespace Umbraco.Core.Services /// /// Occurs after ContentType is Imported and Saved /// - public static event TypedEventHandler> ContentTypeImported; + public static event TypedEventHandler> ImportedContentType; /// /// Occurs before Exporting ContentType @@ -1470,7 +1470,7 @@ namespace Umbraco.Core.Services /// /// Occurs after ContentType is Exported to Xml /// - public static event TypedEventHandler> ContentTypeExported; + public static event TypedEventHandler> ExportedContentType; /// /// Occurs before Importing DataType @@ -1480,7 +1480,7 @@ namespace Umbraco.Core.Services /// /// Occurs after DataType is Imported and Saved /// - public static event TypedEventHandler> DataTypeImported; + public static event TypedEventHandler> ImportedDataType; /// /// Occurs before Exporting DataType @@ -1490,7 +1490,7 @@ namespace Umbraco.Core.Services /// /// Occurs after DataType is Exported to Xml /// - public static event TypedEventHandler> DataTypeExported; + public static event TypedEventHandler> ExportedDataType; /// /// Occurs before Importing DictionaryItem @@ -1500,7 +1500,7 @@ namespace Umbraco.Core.Services /// /// Occurs after DictionaryItem is Imported and Saved /// - public static event TypedEventHandler> DictionaryItemImported; + public static event TypedEventHandler> ImportedDictionaryItem; /// /// Occurs before Exporting DictionaryItem @@ -1510,7 +1510,7 @@ namespace Umbraco.Core.Services /// /// Occurs after DictionaryItem is Exported to Xml /// - public static event TypedEventHandler> DictionaryItemExported; + public static event TypedEventHandler> ExportedDictionaryItem; /// /// Occurs before Importing Language @@ -1520,7 +1520,7 @@ namespace Umbraco.Core.Services /// /// Occurs after Language is Imported and Saved /// - public static event TypedEventHandler> LanguageImported; + public static event TypedEventHandler> ImportedLanguage; /// /// Occurs before Exporting Language @@ -1530,7 +1530,7 @@ namespace Umbraco.Core.Services /// /// Occurs after Language is Exported to Xml /// - public static event TypedEventHandler> LanguageExported; + public static event TypedEventHandler> ExportedLanguage; /// /// Occurs before Importing Template @@ -1540,7 +1540,7 @@ namespace Umbraco.Core.Services /// /// Occurs after Template is Imported and Saved /// - public static event TypedEventHandler> TemplateImported; + public static event TypedEventHandler> ImportedTemplate; #endregion } } \ No newline at end of file