diff --git a/src/Umbraco.Core/EventArgs.cs b/src/Umbraco.Core/EventArgs.cs
index af2ebd208d..706ffe21f7 100644
--- a/src/Umbraco.Core/EventArgs.cs
+++ b/src/Umbraco.Core/EventArgs.cs
@@ -2,9 +2,21 @@
{
//Publishing Events
- public class PublishingEventArgs : System.ComponentModel.CancelEventArgs {
- public bool IsAllRepublished { get; set; }
+ public class PublishingEventArgs : System.ComponentModel.CancelEventArgs
+ {
+ public PublishingEventArgs()
+ {
+ IsAllRepublished = false;
+ }
+
+ public PublishingEventArgs(bool isAllPublished)
+ {
+ IsAllRepublished = isAllPublished;
+ }
+
+ public bool IsAllRepublished { get; private set; }
}
+
public class SendToPublishEventArgs : System.ComponentModel.CancelEventArgs { }
//Moving object Events
diff --git a/src/Umbraco.Core/Publishing/PublishingStrategy.cs b/src/Umbraco.Core/Publishing/PublishingStrategy.cs
index 618c731302..c5720f4741 100644
--- a/src/Umbraco.Core/Publishing/PublishingStrategy.cs
+++ b/src/Umbraco.Core/Publishing/PublishingStrategy.cs
@@ -221,7 +221,7 @@ namespace Umbraco.Core.Publishing
/// Boolean indicating whether its all content that is republished
public override void PublishingFinalized(IEnumerable content, bool isAllRepublished)
{
- OnPublished(content, new PublishingEventArgs { IsAllRepublished = isAllRepublished });
+ OnPublished(content, new PublishingEventArgs(isAllRepublished));
}
///