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