Corné Hoskam
01/17/2024, 8:39 AMCorné Hoskam
01/17/2024, 8:40 AMJemayn
01/17/2024, 8:52 AMcsharp
public class ExampleComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.AddUmbracoCommerce(commerceBuilder =>
{
// Register MyOrderFinalizedHandler to execute before the SomeOtherNotificationHandler handler
commerceBuilder.WithNotificationEvent<OrderFinalizedNotification>()
.RegisterHandlerBefore<SomeOtherNotificationHandler, MyOrderFinalizedHandler>();
// Register MyOrderFinalizedHandler to execute after the SomeOtherNotificationHandler handler
commerceBuilder.WithNotificationEvent<OrderFinalizedNotification>()
.RegisterHandlerAfter<SomeOtherNotificationHandler, MyOrderFinalizedHandler>();
});
}
}
So have a composer where you add the .AddUmbracoCommerce extension to the Umbraco builder and then within that add the IUmbracoCommerceBuilder registrations?
Or set up several builder extensions to be called there if you want to split it up moreCorné Hoskam
01/17/2024, 8:54 AMCorné Hoskam
01/17/2024, 8:56 AMJemayn
01/17/2024, 8:58 AMCorné Hoskam
01/17/2024, 8:58 AMJemayn
01/17/2024, 8:59 AMCorné Hoskam
01/17/2024, 9:02 AMCorné Hoskam
01/17/2024, 9:02 AMCorné Hoskam
01/17/2024, 9:03 AMCorné Hoskam
01/17/2024, 9:03 AMCorné Hoskam
01/17/2024, 9:03 AMJemayn
01/17/2024, 9:06 AMCorné Hoskam
01/17/2024, 9:09 AMCorné Hoskam
01/17/2024, 9:24 AM