protected void Application_Start(object sender, EventArgs e)
protected void Application_Start(object sender, EventArgs e)
{
PublishingModule.Configured += PublishingModule_Configured;
}
void PublishingModule_Configured(object sender, EventArgs e)
{
RegisterXmlInboundPipe();
}
private void RegisterXmlInboundPipe()
{
PublishingSystemFactory.RegisterPipe(XmlInboundPipe.PipeName, typeof(XmlInboundPipe));
var mappingsList = XmlInboundPipe.GetDefaultMapping();
PublishingSystemFactory.RegisterPipeMappings(XmlInboundPipe.PipeName, true, mappingsList);
PipeSettings pipeSettings = new PipeSettings();
pipeSettings.IsInbound = true;
pipeSettings.IsActive = true;
pipeSettings.MaxItems = 25;
pipeSettings.InvocationMode = PipeInvokationMode.Push;
pipeSettings.UIName = "XmlInboundPipeName";
pipeSettings.PipeName = XmlInboundPipe.PipeName;
pipeSettings.ResourceClassId = typeof(PublishingModuleExtensionsResources).Name;
PublishingSystemFactory.RegisterPipeSettings(XmlInboundPipe.PipeName, pipeSettings);
var definitions = XmlInboundPipe.CreateDefaultPipeDefinitions();
PublishingSystemFactory.RegisterPipeDefinitions(XmlInboundPipe.PipeName, definitions);
}