duhe
2025-04-15 7785befe1ccd0566db7d1e4b9016db8e9d1b6628
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);
    }
}