示例#1
0
 public UdpChannel(IDictionary properties, IClientChannelSinkProvider clientChain, IServerChannelSinkProvider serverChain)
 {
     if (serverChain != null || (properties != null && properties.Contains("port")))
     {
         ServerChannel = new UdpServerChannel(properties, serverChain);
     }
     else
     {
         ClientChannel = new UdpClientChannel(properties, clientChain);
     }
 }
示例#2
0
文件: UdpChannel.cs 项目: yallie/zyan
 public UdpChannel(IDictionary properties, IClientChannelSinkProvider clientChain, IServerChannelSinkProvider serverChain)
 {
     if (serverChain != null || (properties != null && properties.Contains("port")))
     {
         ServerChannel = new UdpServerChannel(properties, serverChain);
     }
     else
     {
         ClientChannel = new UdpClientChannel(properties, clientChain);
     }
 }
示例#3
0
 public UdpChannel()
 {
     ClientChannel = new UdpClientChannel();
 }
示例#4
0
文件: UdpChannel.cs 项目: yallie/zyan
 public UdpChannel()
 {
     ClientChannel = new UdpClientChannel();
 }