# Register a pipe

To register your custom pipe, you use the `RegisterPipe` method:

```C#
using System;
using Telerik.Sitefinity.Publishing;

namespace SitefinityWebApp
{
   public class RegisterPipe
   {
       /// <summary>
       /// Registers a pipe
       /// </summary>
       /// <param name="pipeName">The pipe name</param>
       /// <param name="pipeType">The pipe type</param>
       public static void RegisterAPipe(string pipeName, Type pipeType)
       {
           // The RegisterPipe method accepts the name and the type of the pipe as parameters.
           PublishingSystemFactory.RegisterPipe(pipeName, pipeType);
       }

   }
}
```

The `RegisterPipe` method accepts the name and the type of the pipe as parameters.
