Skip to content

Conversation

@TheBlubb14
Copy link
Collaborator

@TheBlubb14 TheBlubb14 commented Jun 28, 2025

A plugin can now use two methods for initialization.

  • void Configure(WebApplicationBuilder builder)

    • Used during bootstrap of application.
    • Can register services for other plugins as well. (In the future we could implement an initialization order)
  • void Configure(WebApplication app)

    • Used after bootstrapping of application.
    • Can be used to get registered services, like Ilogger

  • Plugins now use only ILogger interface from Microsoft.Extensions.Logging.
  • Switched logging framework to serilog, as I couldn't get nlog to print to console.
    • Added log file rolling, each day, 7 days
  • Merged Program.cs and Startup.cs
  • Debugging profiles http and https will now launch swagger in the browser.
  • Changed default port
    • There was no need to use a custom port for the server. The port mapping should be handled docker compose.
  • Added docker-compose.yml which for now only includes postgres.
  • Fixed logic issues in InitializationHelper plugin for asking the connection string.
  • Cleaned up the plugin loader.

A plugin can now use two methods for initialization.
- `void Configure(WebApplicationBuilder builder)`
  - Used during bootstrap of application.
  - Can register services for other plugins as well. (In the future we could implement an initialization order)

- `void Configure(WebApplication app)`
  - Used after bootstrapping of application.
  - Can be used to get registered services, like `Ilogger`

- Plugins now use only `ILogger` interface from `Microsoft.Extensions.Logging`.
- Switched logging framework to serilog, as I couldn't get nlog to print to console.
  - Added log file rolling, each day, 7 days
- Merged `Program.cs` and `Startup.cs`
- Debugging profiles `http` and `https` will now launch swagger in the browser.
- **Changed default port**
  - There was no need to use a custom port for the server. The port mapping should be handled docker compose.
- Added `docker-compose.yml` which for now only includes postgres.
- Fixed logic issues in `InitializationHelper` plugin for asking the connection string.
- Cleaned up the plugin loader.
@TheBlubb14 TheBlubb14 requested a review from susch19 June 28, 2025 20:14
@TheBlubb14 TheBlubb14 requested a review from susch19 July 24, 2025 20:02
@TheBlubb14 TheBlubb14 merged commit c9606e8 into master Jul 31, 2025
5 of 7 checks passed
@TheBlubb14 TheBlubb14 deleted the feature/Plugins branch July 31, 2025 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants