public static void IncrementBy(long by) { try { Bucket bucket = GetBucket(); bucket.IncrementCounter(by); } catch (Exception ex) { Configurator.Configuration.Logger.Error(ex.Message, ex); } }
public AddNamedMetric <T1> Increment(Expression <Func <T1, long> > incAttr, long by) { try { PropertyInfo pi = PropertyHelper <T1> .GetProperty(incAttr); _bucket.IncrementCounter(by, pi.Name, _filter); } catch (Exception ex) { Configurator.Configuration.Logger.Error(ex.Message, ex); } return(this); }
internal void Increment(Expression <Func <T1, long> > incAttr, long by, object filter) { try { PropertyInfo pi = PropertyHelper <T1> .GetProperty(incAttr); Bucket bucket = GetBucket(); bucket.IncrementCounter(by, pi.Name, filter); } catch (Exception ex) { Configurator.Configuration.Logger.Error(ex.Message, ex); } }
public static AddNamedMetric <T1> Increment(Expression <Func <T1, long> > incAttr, long by) { Bucket bucket = null; try { var pi = PropertyHelper <T1> .GetProperty(incAttr); bucket = GetBucket(); bucket.IncrementCounter(by, pi.Name); } catch (Exception ex) { Configurator.Configuration.Logger.Error(ex.Message, ex); } return(new AddNamedMetric <T1>(bucket, null)); }
internal void Increment(ITrackable tracker, Resolution minResolution, DateTime timeSlot, string propertyName, long by, object filter) { try { _trackerType = typeof(T1); _tracker = tracker; var trackerContainer = getTrackerContainer(this); var bucket = new Bucket(0, minResolution, timeSlot); trackerContainer._queuedBucket.Enqueue(bucket); bucket.IncrementCounter(by, propertyName, filter); } catch (Exception ex) { Configurator.Configuration.Logger.Error(ex.Message, ex); } }
internal void IncrementBy(long by, object filter) { Bucket bucket = GetBucket(); bucket.IncrementCounter(by, filter); }