📅  最后修改于: 2022-03-11 14:57:33.505000             🧑  作者: Mango
public void Initialize()
{
// subscribe to content service published event
ContentService.Published += ContentService_Published;
}
private void ContentService_Published(Umbraco.Core.Services.IContentService sender, Umbraco.Core.Events.ContentPublishedEventArgs e)
{
// the custom code to fire everytime content is published goes here!
}