public LoggingTimerContext(ITimerContext context, RxLogEntryMeta meta) { Guard.NotNull(context); _context = context; _meta = meta; }
public static ITimerContext LogOnDispose(this ITimerContext context, object host, [CallerMemberName] string callerMemberName = "", [CallerLineNumber] int lineNo = 0) { var meta = new RxLogEntryMeta(host.GetType(), callerMemberName, lineNo); return(new LoggingTimerContext(context, meta)); }
/// <summary> /// Extensions to log a <see cref="TimerContext"/> upon disposal. /// </summary> /// <param name="context"></param> /// <returns></returns> public static ITimerContext LogOnDispose(this ITimerContext context) { return(new LoggingTimerContext(context)); }
public LoggingTimerContext(ITimerContext context) { Guard.NotNull(context); _context = context; }