示例#1
0
        /// <summary>
        /// Opens the channel.
        /// </summary>
        /// <param name="channelName">Name of the channel.</param>
        /// <param name="interestType">Type of the interest.</param>
        /// <returns></returns>
        public virtual ICommunicationChannel openChannel(String channelName, InterestType interestType)
        {
            ICommunicationChannel channel = new StringChannelImpl(channelName + "_" + idCounter++, this, interestType);

            registerChannel(channel);
            return(channel);
        }
示例#2
0
 /// <summary>
 /// Opens the channel.
 /// </summary>
 /// <param name="channelName">Name of the channel.</param>
 /// <param name="interestType">Type of the interest.</param>
 /// <returns></returns>
 public virtual ICommunicationChannel openChannel(String channelName, InterestType interestType)
 {
     ICommunicationChannel channel = new StringChannelImpl(channelName + "_" + idCounter++, this, interestType);
     registerChannel(channel);
     return channel;
 }