Overview
Replace the existing OnInit delegate-based handlers with a custom ILambdaOnInitContext interface to provide a more extensible and centralized approach to handling initialization actions.
Current State
OnInit handlers currently use a delegate pattern which has limitations in terms of extensibility and discoverability.
Proposed Changes
-
Create ILambdaOnInitContext interface
- Provides a structured context object for OnInit operations
- Supports adding different kinds of information to the context
- Enables more sophisticated initialization scenarios
-
Replace existing delegate pattern
- Migrate from delegate-based handlers to context-based handlers
- Provide a centralized location for building out OnInit handlers
-
Benefits
- More discoverable and testable initialization handlers
- Extensible context object that can grow with new requirements
- Better separation of concerns for initialization logic
- Type-safe access to initialization-specific information
Acceptance Criteria
Overview
Replace the existing OnInit delegate-based handlers with a custom
ILambdaOnInitContextinterface to provide a more extensible and centralized approach to handling initialization actions.Current State
OnInit handlers currently use a delegate pattern which has limitations in terms of extensibility and discoverability.
Proposed Changes
Create
ILambdaOnInitContextinterfaceReplace existing delegate pattern
Benefits
Acceptance Criteria
ILambdaOnInitContextinterface is defined