Changed IsAllRepublished on PublishingEventArgs to be readonly (pretty sure it supposed to be like that)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user