Changed IsAllRepublished on PublishingEventArgs to be readonly (pretty sure it supposed to be like that)

This commit is contained in:
Shannon Deminick
2012-12-15 10:38:57 +05:00
parent b73efd16dc
commit 1d259b711c
2 changed files with 15 additions and 3 deletions

View File

@@ -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

View File

@@ -221,7 +221,7 @@ namespace Umbraco.Core.Publishing
/// <param name="isAllRepublished">Boolean indicating whether its all content that is republished</param>
public override void PublishingFinalized(IEnumerable<IContent> content, bool isAllRepublished)
{
OnPublished(content, new PublishingEventArgs { IsAllRepublished = isAllRepublished });
OnPublished(content, new PublishingEventArgs(isAllRepublished));
}
/// <summary>