IClientChannelSelector.cs 579 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Taobao.Top.Link.Channel
  5. {
  6. /// <summary>channel holder/pool that switch channel by uri.scheme
  7. /// </summary>
  8. public interface IClientChannelSelector
  9. {
  10. /// <summary>get channel
  11. /// </summary>
  12. /// <param name="uri"></param>
  13. /// <returns></returns>
  14. IClientChannel GetChannel(Uri uri);
  15. /// <summary>return channel
  16. /// </summary>
  17. /// <param name="channel"></param>
  18. void ReturnChannel(IClientChannel channel);
  19. }
  20. }