Skip to content

Refactor Context Class #215

@michaelbeale-IL

Description

@michaelbeale-IL

Remove static dependencies from Context class and inject services.

Acceptance Criteria:

  • Context class redesigned to use DI
  • All Context consumers updated
  • Static references removed or minimized
  • Proper lifetime management for Context
  • Tests updated
  • No breaking changes to external APIs

Technical Approach:

  • Inject required managers into Context
  • Provide Context through IServiceProvider
  • Update all Context.AppXXX references
  • Consider Context as scoped service

Risk Areas:

  • Many places reference Context statically
  • May need gradual migration approach
  • Consider adapter pattern for legacy code

Files to Modify:

  • Libraries/ACATCore/Utility/Context.cs
  • All files that use Context (search for 'Context.App')

Epic: Dependency Injection Infrastructure

Estimated Effort: 5 days


Parent Feature: #190 - Dependency Injection Infrastructure

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions