...
Code Block | ||||
---|---|---|---|---|
| ||||
var debtorPrice = Manager.CollectionItemFactory.CreateCollectionItem<JiwaFinancials.Jiwa.JiwaInventory.DebtorSpecificInventorySpecific>(); debtorPrice.Debtor.Search(); Inventory.DebtorPrices.Add(debtorPrice); |
Why the changes were made
We found that in the development of our REST API, the singleton pattern was inhibiting the ability to have multiple users using the REST API concurrently. In order for us to provide the REST API we had to move away from the singleton pattern.
Migration Steps
Always use a factory to create an instance of a class implementing any of the following interfaces:
...