Moving to Commerce SDK from Retail SDK, when sending CRT request from one SU Package, while its Request Handler is in another package, then the request will not be recognized by the request handler #257
Unanswered
zhangguanghuib
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Customer reported one issue when they are moving their customization to Commerce SDK from Retail SDK, and they found if the request handler is in another Scale Unit Package while send request from different package, then the request handler will not recognize the request, that caused a problem.
Repro steps:
Repro steps:
Please clone this project:
https://github.com/zhangguanghuib/NewCommerceSDK/tree/main/POS_Samples/POSExtensions/MultiPkgs1
GHZ.StoreHoursSample.DataModel: contains the Entity and Request/Response
GHZ.StoreHoursSample.CommerceRuntime: Request Handler, it is a Scale Unit Package
CommerceRuntime: Send Request from this package.
Build the solution, installer the two CSU packages, and Store Commerce Installer, finally you should see two Scale Unit Packages:

Image
and One Store Commerce Package:

Log in POS, go to Search View, click to open the view, and then click Ping Test Button:


Debug the code:
You can see the request send from one package:
and it really can find the request handler in another package:

But you can see in this line:
if (reqType == typeof(GetStoreHoursDataRequest))
This compare will return false and then finally it will show this request will not be supported

Question:
Can you please confirm why send request from one package, if the request handler in another package, the request will not be handler?
Beta Was this translation helpful? Give feedback.
All reactions