Esempio n. 1
0
        public MulticastingChannelRealiabilityLayer(IMulticastingChannel innerChannel, TimeSpan heartbeatInterval)
        {
            _innerChannel      = innerChannel;
            _heartbeatInterval = heartbeatInterval;
            _subscribtion      = _innerChannel.Subscribe(".*", OnLowerLayerMessage);

            _heartbeat = _daemon.ScheduleInterval(Heartbeat, _heartbeatInterval);
        }
        public MulticastingStressTestLayer(IMulticastingChannel innerLayer, Random random)
        {
            if (innerLayer == null) throw new ArgumentNullException("innerLayer");
            if (random == null) throw new ArgumentNullException("random");

            _innerLayer = innerLayer;
            _random = random;
        }
        public MulticastingChannelRealiabilityLayer(IMulticastingChannel innerChannel, TimeSpan heartbeatInterval)
        {
            _innerChannel = innerChannel;
            _heartbeatInterval = heartbeatInterval;
            _subscribtion = _innerChannel.Subscribe(".*", OnLowerLayerMessage);

            _heartbeat = _daemon.ScheduleInterval(Heartbeat, _heartbeatInterval);
        }
        public MulticastingStressTestLayer(IMulticastingChannel innerLayer, Random random)
        {
            if (innerLayer == null)
            {
                throw new ArgumentNullException("innerLayer");
            }
            if (random == null)
            {
                throw new ArgumentNullException("random");
            }

            _innerLayer = innerLayer;
            _random     = random;
        }
Esempio n. 5
0
        public EmRoute(string pattern, IMulticastingChannel channel)
        {
            if (pattern == null)
            {
                throw new ArgumentNullException("pattern");
            }
            if (channel == null)
            {
                throw new ArgumentNullException("channel");
            }

            _channel = channel;
            _pattern = new Regex(pattern, RegexOptions.Compiled);
            _channel.Subscribe(pattern, (p, o) =>
            {
                foreach (Action <string, object> consumer in _list)
                {
                    consumer(p, o);
                }
            });
        }
Esempio n. 6
0
 public EmMqConfigBase(IMulticastingChannel channel) : base(new List <IMqRoute>())
 {
     Channel = channel;
 }
Esempio n. 7
0
 public PgmEmMqConfig(IMulticastingChannel channel) : base(channel)
 {
 }
Esempio n. 8
0
 public EmMqConfigBase(IMulticastingChannel channel)
     : base(new List<IMqRoute>())
 {
     Channel = channel;
 }
 public MulticastingStressTestLayer(IMulticastingChannel innerLayer)
     : this(innerLayer, new Random())
 {
 }
Esempio n. 10
0
 public PgmEmMqConfig(IMulticastingChannel channel)
     : base(channel)
 {
 }
 public MulticastingStressTestLayer(IMulticastingChannel innerLayer) : this(innerLayer, new Random())
 {
 }