2
0

BaseRequestProcessorHandler.cs 657 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.ServiceModel;
  5. using System.ServiceModel.Channels;
  6. namespace System.ServiceModel.Dispatcher
  7. {
  8. internal abstract class BaseRequestProcessorHandler
  9. {
  10. BaseRequestProcessorHandler next;
  11. public virtual void ProcessRequestChain (MessageProcessingContext mrc)
  12. {
  13. if (!ProcessRequest (mrc) && next != null ) {
  14. next.ProcessRequestChain (mrc);
  15. }
  16. }
  17. public BaseRequestProcessorHandler Next
  18. {
  19. get { return next; }
  20. set { next = value; }
  21. }
  22. protected abstract bool ProcessRequest (MessageProcessingContext mrc);
  23. }
  24. }