protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_handler != null)
         {
             _handler.Dispose();
             _handler = null;
         }
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PathBasedHandlerRemapper"/> class.
 /// </summary>
 /// <param name="handledExtension">The handled extension.  Include the '.': ".css"</param>
 /// <param name="transformations">The transformations to apply in the content pipeline.</param>
 public PathBasedHandlerRemapper(string handledExtension, params IContentTransform[] transformations)
 {
     _handledExtension = handledExtension;
     _pipeline         = new ContentPipeline(transformations);
     _handler          = new PipelineHandler(_pipeline);
 }
 public void Init(HttpApplication context)
 {
     _handledExtensions = HandledExtensions;
     _handler           = new PipelineHandler(new ContentPipeline(Transformations));
     context.PostResolveRequestCache += ConditionallyRemapHandler;
 }