91c166dc4d501a922fb32148083012cad1031341
Introduced optional ILogger support across BaseCrudApi and its derived classes to enable logging of API call outcomes. Updated constructors to accept an optional ILogger parameter, with conditional compilation for .NET Framework compatibility. Replaced EnsureSuccessAsync with HandleResponseAsync in CRUD methods to integrate logging. Updated derived API classes (CommonApi, EndpointAuthApi, EndpointParamsApi, EndpointsApi, ProfileApi, RecActionApi, ResultApi) to pass ILogger to the base class. Added Microsoft.Extensions.Logging imports and ensured backward compatibility by making ILogger optional and handling nullable reference types in non-.NET Framework environments.
Description
Languages
C#
100%