Skip to content

Refactor Globals.cs to use Dependency Injection #3153

@SkyeHoefling

Description

@SkyeHoefling

Description of problem

In DNN 9.4.0 we introduced Dependency Injection and it is time to start refactoring the Globals.cs file to use Dependency Injection. This is a massive undertaking and should not be attempted in 1 Pull Request. This work item should serve as an epic that we can link others back to as we solve small problems.

Description of solution

Refactor sections of Globals.cs into manageable interfaces grouped in logical chunks. For example all of the NavigateURL methods should move to an interface called INavigationManager.

Description of alternatives considered

N/A

Screenshots

N/A

Affected browser

  • Chrome
  • Firefox
  • Safari
  • Internet Explorer
  • Edge

Work Items

A table of work items of chunks that we will break out the Globals.cs into

Work Item ID Manager Description
#3159 INavigationManager All navigation methods should exist in an easy to use interface

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions