forked from JimmieOverby/MultipleSitesManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PublishEndProcessor.cs
49 lines (46 loc) · 2.5 KB
/
PublishEndProcessor.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* *********************************************************************** *
* File : FlushCommand.cs Part of Sitecore *
* Version: 2.1.0 www.sitecore.net *
* *
* *
* Purpose: Represents command "multisitesmanager:flush" *
* *
* Bugs : None known. *
* *
* Status : Published. *
* *
* Copyright (C) 1999-2007 by Sitecore A/S. All rights reserved. *
* *
* This work is the property of: *
* *
* Sitecore A/S *
* Meldahlsgade 5, 4. *
* 1613 Copenhagen V. *
* Denmark *
* *
* This is a Sitecore published work under Sitecore's *
* shared source license. *
* *
* *********************************************************************** */
using System.IO;
using Sitecore.IO;
namespace Sitecore.Sites
{
using System;
/// <summary>
/// Defines publish:end event
/// </summary>
[Obsolete("Deprecated: Please use the new event multisitesmanager:flush:remote")]
public class PublishEndProcessor
{
/// <summary>
/// Called when sites have been added and flushed
/// </summary>
/// <param name="obj">The object.</param>
/// <param name="eventArgs">The <see cref="System.EventArgs"/> instance containing the event data.</param>
public void OnSitesPublished(object obj, EventArgs eventArgs)
{
Sitecore.Sites.MultiSitesManager.Flush();
}
}
}