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