Esempio n. 1
0
        public void Insert(int index, IHttpContextPipelineHandler processor)
        {
            if (processor == null)
            {
                throw new ArgumentNullException(nameof(processor));
            }

            _handlers.Insert(index, processor);
        }
Esempio n. 2
0
        public void InsertAfter <TBefore>(IHttpContextPipelineHandler processor) where TBefore : IHttpContextPipelineHandler
        {
            if (processor == null)
            {
                throw new ArgumentNullException(nameof(processor));
            }

            Insert(_handlers.FindIndex(h => h is TBefore) + 1, processor);
        }
Esempio n. 3
0
        public void Add(IHttpContextPipelineHandler processor)
        {
            if (processor == null)
            {
                throw new ArgumentNullException(nameof(processor));
            }

            _handlers.Add(processor);
        }
Esempio n. 4
0
 public void InsertBefore <TAfter>(IHttpContextPipelineHandler processor) where TAfter : IHttpContextPipelineHandler
 {
     Insert(_handlers.FindIndex(h => h is TAfter), processor);
 }