Exemple #1
0
 /// <summary>
 /// Constructor that allows the specification of the channel ID.
 /// </summary>
 /// <param name="channelManager">The responsible channel manager.</param>
 /// <param name="id">The globally unique channel ID string.</param>
 /// <remarks>
 /// <note>
 /// This constructor is available for sessionful channels that wish
 /// to set the channel ID to the globally unqiue session ID.
 /// </note>
 /// </remarks>
 public LillTekChannelBase(ChannelManagerBase channelManager, string id)
     : base(channelManager)
 {
     this.channelManager = (ILillTekChannelManager)channelManager;
     this.id             = id;
     this.onBkTask       = new AsyncCallback(OnBkTask);
 }
Exemple #2
0
        private IAsyncResult arBkTimer;                         // Background timer async result

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="channelManager">The responsible channel manager.</param>
        /// <remarks>
        /// <note>
        /// This constructor overrides generates a globally unique channel ID string.
        /// </note>
        /// </remarks>
        public LillTekChannelBase(ChannelManagerBase channelManager)
            : base(channelManager)
        {
            this.channelManager = (ILillTekChannelManager)channelManager;
            this.id             = Guid.NewGuid().ToString("D");
            this.onBkTask       = new AsyncCallback(OnBkTask);
        }