Add custom context type for dependency injection.