Example #1
0
        /// <summary>
        /// Opens the channel.
        /// </summary>
        /// <param name="channelName">Name of the channel.</param>
        /// <param name="reader">The reader.</param>
        /// <param name="interestType">Type of the interest.</param>
        /// <returns></returns>
        public IStreamChannel openChannel(String channelName, StreamReader reader, InterestType interestType)
        {
            IStreamChannel channel = new StreamChannelImpl(channelName + "_" + idCounter++, this, interestType);

            channel.init(reader);
            registerChannel(channel);
            return(channel);
        }
Example #2
0
        /// <summary>
        /// Opens the channel.
        /// </summary>
        /// <param name="channelName">Name of the channel.</param>
        /// <param name="inputStream">The input stream.</param>
        /// <param name="interestType">Type of the interest.</param>
        /// <returns></returns>
        public virtual IStreamChannel openChannel(String channelName, Stream inputStream, int interestType)
        {
            IStreamChannel channel = new StreamChannelImpl(channelName + "_" + idCounter++, this, interestType);

            channel.init(inputStream);
            registerChannel(channel);
            return(channel);
        }
Example #3
0
 /// <summary>
 /// Opens the channel.
 /// </summary>
 /// <param name="channelName">Name of the channel.</param>
 /// <param name="inputStream">The input stream.</param>
 /// <param name="interestType">Type of the interest.</param>
 /// <returns></returns>
 public IStreamChannel openChannel(String channelName, TextReader inputStream, InterestType interestType)
 {
     IStreamChannel channel = new StreamChannelImpl(channelName + "_" + idCounter++, this, interestType);
     channel.init(inputStream);
     registerChannel(channel);
     return channel;
 }
Example #4
0
 /// <summary>
 /// Opens the channel.
 /// </summary>
 /// <param name="channelName">Name of the channel.</param>
 /// <param name="reader">The reader.</param>
 /// <param name="interestType">Type of the interest.</param>
 /// <returns></returns>
 public virtual IStreamChannel openChannel(String channelName, StreamReader reader, int interestType)
 {
     IStreamChannel channel = new StreamChannelImpl(channelName + "_" + idCounter++, this, interestType);
     channel.init(reader);
     registerChannel(channel);
     return channel;
 }