Skip to content

Resolve warnings in DotNetNuke.HttpModules & fix DI timing#6591

Merged
david-poindexter merged 3 commits intodnnsoftware:developfrom
bdukes:httpmodules-warnings
Jun 12, 2025
Merged

Resolve warnings in DotNetNuke.HttpModules & fix DI timing#6591
david-poindexter merged 3 commits intodnnsoftware:developfrom
bdukes:httpmodules-warnings

Conversation

@bdukes
Copy link
Copy Markdown
Contributor

@bdukes bdukes commented Jun 11, 2025

Summary

This PR resolves all warnings in the DotNetNuke.HttpModules project.

Noteworthy changes

Since HTTP Modules are initialized very early in the process of starting the application, the DI container was not ready to inject constructor parameters. The first commit in this PR moves the DI initialization code from the Application_Start handler to the static constructor of the application class. This appears to fix the issue, making constructor injection work in all components.

@bdukes bdukes added this to the 10.0.2 milestone Jun 11, 2025
@bdukes bdukes changed the title Resolve warnings in DotNetNuke.HttpModules Resolve warnings in DotNetNuke.HttpModules & fix DI timing Jun 11, 2025
@bdukes bdukes force-pushed the httpmodules-warnings branch 2 times, most recently from 180f426 to 0e01858 Compare June 12, 2025 13:13
@bdukes bdukes force-pushed the httpmodules-warnings branch from 0e01858 to fdea035 Compare June 12, 2025 13:16
Copy link
Copy Markdown
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

Copy link
Copy Markdown
Contributor

@david-poindexter david-poindexter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @bdukes 🎉

@david-poindexter david-poindexter merged commit 291e584 into dnnsoftware:develop Jun 12, 2025
2 checks passed
@david-poindexter david-poindexter deleted the httpmodules-warnings branch June 12, 2025 18:05
@valadas valadas modified the milestones: 10.0.2, 10.1.0 Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants