Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Best practice using Conventions API?

Vote:
 

I was reviewing the documentation on the Conventions API, and I noticed that it first mentions configuring the settings in an IInitializableModule. However, the code samples that follow seem to use a Startup-context.

Which method is recommended? Is IInitializableModule still the preferred approach, or should we be using Startup?

#337179
Mar 12, 2025 9:54
Vote:
 

I will file a bug to documentation team to update it. Meanwhile for CMS 12 it's generally advised to use Startup, but not necessarily the only way (IInitializableModule would still work). Thanks for bringing it into our attention 

Update: I have filed bug CG-11474 for the Content Graph team to look into. I think there might be reason for that, but there should be consistency 

#337181
Edited, Mar 12, 2025 16:32
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.