HTTP handler factory used to create new TrackbackHttpHandler handler objects.
Namespace:
Argotic.Core.WebAssembly: Argotic.Core (in Argotic.Core)
Version: 2007.3.0.0 (2007.3.0.0)
Syntax
| C# |
|---|
public class TrackbackHttpHandlerFactory : IHttpHandlerFactory |
| Visual Basic (Declaration) |
|---|
Public Class TrackbackHttpHandlerFactory _ Implements IHttpHandlerFactory |
| Visual C++ |
|---|
public ref class TrackbackHttpHandlerFactory : IHttpHandlerFactory |
Remarks
By default the trackback handler factory will return a default instance of the TrackbackHttpHandler class.
Examples
The following example demonstrates how to configure and add the TrackbackHttpHandlerFactory to an ASP.NET application:
1. Configure the trackback handler and one or more listeners that the handler will notify when a valid trackback ping request is sent.
<configuration>
<configSections>
<!-- Define trackback handler configuration section -->
<section name="argotic.trackbackHandler" type="Argotic.Core.Configuration.TrackbackHttpHandlerConfigurationSection, Argotic.Core" />
</configSections>
<!-- Configure trackback handler -->
<argotic.trackbackHandler
useGlobalLock="true"
>
<listeners>
<add name="XmlTrackbackListener" type="Argotic.Core.Web.XmlTrackbackListener, Argotic.Core" path="~/App_Data/Syndication/Trackback.xml" /> </listeners>
</argotic.trackbackHandler>
</configuration>
2. Add the trackback factory to the ASP.NET application's HTTP handlers configuration.
<configuration>
<!-- Use the following to add the HTTP handler factory to an IIS6 web application -->
<system.web>
<httpHandlers>
<add verb="*" path="trackback.axd" type="Argotic.Core.Web.TrackbackHttpHandlerFactory, Argotic.Core" validate="false"/>
</httpHandlers>
</system.web>
<!-- Use the following to add the HTTP handler factory to an IIS7 web application -->
<system.webServer>
<handlers>
<add verb="*" path="trackback.axd" type="Argotic.Core.Web.TrackbackHttpHandlerFactory, Argotic.Core" name="TrackbackHttpHandlerFactory" />
</handlers>
</system.webServer>
</configuration>
1. Configure the trackback handler and one or more listeners that the handler will notify when a valid trackback ping request is sent.
<configuration>
<configSections>
<!-- Define trackback handler configuration section -->
<section name="argotic.trackbackHandler" type="Argotic.Core.Configuration.TrackbackHttpHandlerConfigurationSection, Argotic.Core" />
</configSections>
<!-- Configure trackback handler -->
<argotic.trackbackHandler
useGlobalLock="true"
>
<listeners>
<add name="XmlTrackbackListener" type="Argotic.Core.Web.XmlTrackbackListener, Argotic.Core" path="~/App_Data/Syndication/Trackback.xml" /> </listeners>
</argotic.trackbackHandler>
</configuration>
2. Add the trackback factory to the ASP.NET application's HTTP handlers configuration.
<configuration>
<!-- Use the following to add the HTTP handler factory to an IIS6 web application -->
<system.web>
<httpHandlers>
<add verb="*" path="trackback.axd" type="Argotic.Core.Web.TrackbackHttpHandlerFactory, Argotic.Core" validate="false"/>
</httpHandlers>
</system.web>
<!-- Use the following to add the HTTP handler factory to an IIS7 web application -->
<system.webServer>
<handlers>
<add verb="*" path="trackback.axd" type="Argotic.Core.Web.TrackbackHttpHandlerFactory, Argotic.Core" name="TrackbackHttpHandlerFactory" />
</handlers>
</system.webServer>
</configuration>
