private
void
RegisterFacebookEventsInboundPipe()
{
PublishingSystemFactory.RegisterPipe( FacebookEventsInboundPipe.PipeName,
typeof
( FacebookEventsInboundPipe ) );
var mappingsList = FacebookEventsInboundPipe.GetDefaultMapping();
PublishingSystemFactory.RegisterPipeMappings( FacebookEventsInboundPipe.PipeName,
true
, mappingsList );
SitefinityContentPipeSettings pipeSettings =
new
SitefinityContentPipeSettings();
pipeSettings.IsInbound =
true
;
pipeSettings.IsActive =
true
;
pipeSettings.MaxItems = 25;
pipeSettings.InvocationMode = PipeInvokationMode.Push;
pipeSettings.ContentTypeName =
typeof
( Telerik.Sitefinity.Events.Model.Event ).FullName;
pipeSettings.UIName =
"FacebookEventsInboundPipeName"
;
pipeSettings.PipeName = FacebookEventsInboundPipe.PipeName;
pipeSettings.ResourceClassId =
typeof
( FacebookEventsImportResources ).Name;
PublishingSystemFactory.RegisterPipeSettings( FacebookEventsInboundPipe.PipeName, pipeSettings );
var definitions = FacebookEventsInboundPipe.CreateDefaultPipeDefinitions();
PublishingSystemFactory.RegisterPipeDefinitions( FacebookEventsInboundPipe.PipeName, definitions );
}
private
void
RegisterFacebookEventsOutboundPipe()
{
PublishingSystemFactory.RegisterPipe( FacebookEventsOutboundPipe.PipeName,
typeof
( FacebookEventsOutboundPipe ) );
var mappingsListOutbound = FacebookEventsOutboundPipe.GetDefaultMapping();
PublishingSystemFactory.RegisterPipeMappings( FacebookEventsOutboundPipe.PipeName,
false
, mappingsListOutbound );
SitefinityContentPipeSettings pipeSettingsOutbound =
new
SitefinityContentPipeSettings();
pipeSettingsOutbound.IsInbound =
false
;
pipeSettingsOutbound.IsActive =
true
;
pipeSettingsOutbound.MaxItems = 0;
pipeSettingsOutbound.InvocationMode = PipeInvokationMode.Push;
pipeSettingsOutbound.ContentTypeName =
typeof
( Telerik.Sitefinity.Events.Model.Event ).FullName;
pipeSettingsOutbound.UIName =
"FacebookEventsOutboundPipeName"
;
pipeSettingsOutbound.PipeName = FacebookEventsOutboundPipe.PipeName;
pipeSettingsOutbound.ResourceClassId =
typeof
( FacebookEventsImportResources ).Name;
PublishingSystemFactory.RegisterPipeSettings( FacebookEventsOutboundPipe.PipeName, pipeSettingsOutbound );
var definitionsOutbound = FacebookEventsOutboundPipe.CreateDefaultPipeDefinitions();
PublishingSystemFactory.RegisterPipeDefinitions( FacebookEventsOutboundPipe.PipeName, definitionsOutbound );
}