internal static IDisposable With <T>( this ILogContext context, string key, T value) { context.Set(key, value); return(new DisposableAction(() => context.Remove(key))); }
public static IDisposable Capture <T>(this ILogContext logContext, string key, T value) { logContext.Set(key, value); return(new DisposeAction(() => logContext.Remove(key))); }