-
I am in the process to change our custom over from RetailSDK to CommerceSDK. I watched the webinars and in one of them it stated that we can use NotHandledResponse() when we in certain instances want to run standard base code in our CRT custom code. Now what does that mean? It is used in many places in the Microsoft documents under Learn.Microsoft.com. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @RethaLam - that just means that the old method As we make changes to classes like this, we will mark the old methods as 'Obsolete', meaning customers will see a warning like this one, which specifies when the method was deprecated. Generally though, the old 'Obsolete' methods remain available for customers to use for up to one year from when they were deprecated, in order to give them time to make the transition. Sometime after that grace period, we will remove the method so customers will not be able to call it anymore. We try to keep documentation up to date as much as possible when methods or properties are deprecated, but it's always possible we miss some instances or changes. I'll file a bug for the documentation team to review the docs to see where we need to remove the obsolete method. |
Beta Was this translation helpful? Give feedback.
-
Hi @madyke I finally had a chance to get back to this code. I was not able to find a reference to "NotHandledResponse.Instance" in the documentation. I in the end searched for it in the code examples under RetailSDK and found it in the CommerceRuntime examples e.g. GetSalesTransactionCustomReceiptFieldService. I'm going to miss the examples that are under RetailSDK: |
Beta Was this translation helpful? Give feedback.
-
Thank you Madyke |
Beta Was this translation helpful? Give feedback.
Hi @RethaLam - that just means that the old method
NotHandledResponse()
has been deprecated, and that users should now useNotHandledResponse.Instance
instead. ThisInstance
property accomplishes all of the same things as the previous method, but uses a singleton to avoid unneeded allocations, improving performance.As we make changes to classes like this, we will mark the old methods as 'Obsolete', meaning customers will see a warning like this one, which specifies when the method was deprecated. Generally though, the old 'Obsolete' methods remain available for customers to use for up to one year from when they were deprecated, in order to give them time to make the transition. Sometime …