我在 localhost 上安装了一个 Umbraco (v4.7) 站点。
每次发布 umbraco 节点时,我都需要执行一项操作(比如说登录到控制台或文件)。
所以我需要与来自 Umbraco 站点的外部应用程序(如控制台或 Windows 服务)进行交互......
我不需要使用控制台应用程序来操作 umbraco 站点,而是使用控制台(或 windows 服务)应用程序操作来响应 umbraco 事件。
我有
public class ContentEvents : umbraco.BusinessLogic.ApplicationBase
{
void PlumbEvents()
{
// ...
Document.AfterPublish += new Document.PublishEventHandler(
Document_AfterPublish);
// ...
}
void Document_AfterPublish(Document sender, PublishEventArgs e)
{
// HERE I NEEDD TO CALL BY EG
// "MyExternalApplication" + "sender" as parameter
// where "MyExternalApplication" could be
// a ConsoleApplication or a WindowsService
}
// ...
}
是否可以从该代码调用外部的东西?