static InfusioState LogResult <T>(InfusioState state, T value) => typeof(T) == typeof(Unit) ? state : state.UseLogging ? state.Log($"OK: {SerializeObject(value, Indented)}") : state;
static InfusioState LogRequest <T>(InfusioState state, Show <InfusioOp <T> > show) => state.UseLogging ? state.Log(show()) : state;