Hi there,
I have a site that uses multiple integrations and price providers. In one scenario, I have a standard Live Integration to BC. When that returns a price, it should be used. Otherwise, it needs to run through my own price provider.
How can I guarantee the order of providers? In PriceManager.CheckProviderTypesInCache I can see how the providers are retrieved but not sorted, which I believe means they come in unsorted.
foreach (Type addIn in AddInManager.GetAddInClasses(typeof(PriceProvider)))
{
if (!ReferenceEquals(addIn, typeof(DefaultPriceProvider)))
{
priceProviderTypes.Add(addIn);
}
}
Then when they are used, in PriceManager.FindPrice, they are simply looped over until one returns a price. Is there a possibility to force the order and determine when my own provider runs? In other extensibility type we have something like Rank but I am not seeing that here.
Thanks!
Imar