예제 #1
0
        /// <summary>
        /// Adds a post-processor instance to the server
        /// </summary>
        /// <returns>The server configuration.</returns>
        /// <param name="postprocessor">The post-processor to add.</param>
        public ServerConfig AddPostProcessor(IPostProcessor postprocessor)
        {
            if (postprocessor == null)
            {
                throw new ArgumentNullException(nameof(postprocessor));
            }
            if (PostProcessors == null)
            {
                PostProcessors = new List <IPostProcessor>();
            }

            PostProcessors.Add(postprocessor);
            return(this);
        }
 private PostProcessorManager()
 {
     // TODO: move this somewhere better
     PostProcessors.Add(new MoveOutputPostProcessor());
 }