SDKits / ExamineX

Issue tracker for ExamineX
https://examinex.online
5 stars 0 forks source link

Bootstrap ExamineX with IUmbracoBuilder extension methods instead of using IComposer #99

Closed Shazwazza closed 5 months ago

Shazwazza commented 7 months ago

To avoid any race conditions and to allow developers to have full control over when ExamineX maps Examine config to ExamineX config, ExamineX will now require explicit registration in Program.cs:

builder.CreateUmbracoBuilder()
    .AddBackOffice()
    .AddWebsite()
    .AddComposers()

    // Add ExamineX - must be after AddComposers!
    .AddExamineXAzureSearch()
    // If you are using the BlobMedia ExamineX feature
    //.AddExamineXForBlobMedia()
    // If you are using the Forms ExamineX feature
    //.AddExamineXForUmbracoForms()

    .Build();