Zuzie
Zuzie
CC#
Created by qqdev on 6/13/2023 in #help
✅ Scoped-based logging: Microsoft interface
I don't think you need to re-add the entire context to each scope, you can create a new scope with just the new context information. The parent context will still be included in the log message.
//Existing Context
using var scope1 = _logger.BeginScope(context.ToDictionary());
//New Context
using var scope2 = _logger.BeginScope(new Dictionary<string, object> {{"Foo", bar}});
//Existing Context
using var scope1 = _logger.BeginScope(context.ToDictionary());
//New Context
using var scope2 = _logger.BeginScope(new Dictionary<string, object> {{"Foo", bar}});
156 replies
CC#
Created by dela on 6/2/2023 in #help
❔ OpenAPI add TAG swagger
I think swashbuckle will group endpoints by tag if you add a Tags attribute to each controller [Tags("Pet")]
3 replies
CC#
Created by Eynix on 6/1/2023 in #help
❔ COM type library integration in C++ project
42 replies