public bool IsCounterEnabled(ICounterToken ct) { foreach (var filter in _filters) { if (!filter.IsCounterEnabled(ct)) { return(false); } } return(true); }
public void SetCounter(ICounterToken ct, long value) { var nct = ct as INamedCounterToken; if (nct != null) { _rawCounterToken_set(this, nct, value); } else { _rawCounterToken_set(this, ct, value); } }
public void IncrementCounterBy(ICounterToken ct, long value) { var nct = ct as INamedCounterToken; if (nct != null) { _namedCounterToken_increment(this, nct, value); } else { _rawCounterToken_increment(this, ct, value); } }
public void IncrementCounterBy(ICounterToken ct, long value) { var nct = ct as INamedCounterToken; if (nct != null) { _incrementNamedCounter(nct, value); } else { _incrementRawCounter(ct, value); } }
public void SetCounter(ICounterToken ct, long value) { var nct = ct as INamedCounterToken; if (nct != null) { _setNamedCounter(nct, value); } else { _setRawCounter(ct, value); } }
public override void IncrementCounterBy(ICounterToken ct, long value) { try { _inner.IncrementCounterBy(ct, value); } catch (Exception eError) { try { HandleError(this, eError); } catch (Exception eError2) { LastResort(this, eError, eError2); } } }
public void IncrementCounterBy(ICounterToken ct, long value) { CompositeAction(l => l.IncrementCounterBy(ct, value)); }
public virtual void SetCounter(ICounterToken ct, long value) { _inner.SetCounter(ct, value); }
public void IncrementCounterBy(ICounterToken ct, long value) { BufferedAction(l => l.IncrementCounterBy(ct, value)); }
public void SetCounter(ICounterToken ct, long value) { BufferedAction(l => l.SetCounter(ct, value)); }
public virtual void IncrementCounterBy(ICounterToken ct, long value) { _inner.IncrementCounterBy(ct, value); }
public void IncrementCounterBy(ICounterToken ct, long value) { }
public void SetCounter(ICounterToken ct, long value) { }
public static void IncrementCounterBy(this ILogStream log, ICounterToken ct, Stopwatch watch) { log.IncrementCounterBy(ct, watch.ElapsedTicks); }
public bool IsCounterEnabled(ICounterToken ct) { return(_rawCounterFilter(ct)); }
public void SetCounter(ICounterToken ct, long value) { CompositeAction(l => l.SetCounter(ct, value)); }
public static void IncrementCounter(this ILogStream log, ICounterToken ct) { log.IncrementCounterBy(ct, 1); }
public static void SetCounter(this ILogStream log, ICounterToken ct, ILogToken lt, long value) { var nct = LogManager.CreateNamedCounterToken(ct.Counter, lt.Name); log.SetCounter(nct, value); }
public static void IncrementCounterBy(this ILogStream log, ICounterToken ct, ILogToken lt, Stopwatch watch) { var nct = LogManager.CreateNamedCounterToken(ct.Counter, lt.Name); log.IncrementCounterBy(nct, watch.ElapsedTicks); }
public static void DecrementCounter(this ILogStream log, ICounterToken ct, ILogToken lt) { var nct = LogManager.CreateNamedCounterToken(ct.Counter, lt.Name); log.IncrementCounterBy(nct, -1); }