/// <summary> /// Gets a handler for measurements that routes measurements to the appropriate consumers. /// </summary> /// <returns>The measurement handler used for routing.</returns> public virtual EventHandler <EventArgs <ICollection <IMeasurement> > > GetRoutedMeasurementsHandler() { LocalCache localCache = new LocalCache(this); return((sender, args) => localCache.Route(args.Argument)); }
/// <summary> /// This method will directly inject measurements into the routing table and use a shared local input adapter. For /// contention reasons, it is not recommended this be its default use case, but it is necessary at times. /// </summary> /// <param name="sender">the sender object</param> /// <param name="measurements">the event arguments</param> public void InjectMeasurements(object sender, EventArgs <ICollection <IMeasurement> > measurements) { m_injectMeasurementsLocalCache.Route(sender, measurements); }
/// <summary> /// Gets a handler for measurements that routes measurements to the appropriate consumers. /// </summary> /// <returns>The measurement handler used for routing.</returns> public virtual EventHandler<EventArgs<ICollection<IMeasurement>>> GetRoutedMeasurementsHandler() { LocalCache localCache = new LocalCache(this); return (sender, args) => localCache.Route(args.Argument); }