This pull request involves code refactoring and feature enhancement in the RefitterCodeGenerator.cs file.
PR Summary
The changes in this pull request improve the readability and maintainability of the code, and add logging and JSON serialization/deserialization functionalities.
RefitterCodeGenerator.cs: Added Rapicgen.Core.Logging and Newtonsoft.Json namespaces for logging and JSON functionalities.
RefitterCodeGenerator.cs: Refactored the creation of RefitGeneratorSettings object for better code readability.
RefitterCodeGenerator.cs: Implemented asynchronous creation of RefitGenerator using the settings object.
RefitterCodeGenerator.cs: Introduced a DependencyContext object for managing dependencies.
RefitterCodeGenerator.cs: Added a call to Succeeded method after code generation, indicating success.
RefitterCodeGenerator.cs: Appended an auto-generated code header using GeneratedCode.PrefixAutogeneratedCodeHeader method.
PR Classification
This pull request involves code refactoring and feature enhancement in the
RefitterCodeGenerator.cs
file.PR Summary
The changes in this pull request improve the readability and maintainability of the code, and add logging and JSON serialization/deserialization functionalities.
RefitterCodeGenerator.cs
: AddedRapicgen.Core.Logging
andNewtonsoft.Json
namespaces for logging and JSON functionalities.RefitterCodeGenerator.cs
: Refactored the creation ofRefitGeneratorSettings
object for better code readability.RefitterCodeGenerator.cs
: Implemented asynchronous creation ofRefitGenerator
using thesettings
object.RefitterCodeGenerator.cs
: Introduced aDependencyContext
object for managing dependencies.RefitterCodeGenerator.cs
: Added a call toSucceeded
method after code generation, indicating success.RefitterCodeGenerator.cs
: Appended an auto-generated code header usingGeneratedCode.PrefixAutogeneratedCodeHeader
method.