MenuService¶
Thin facade over IBolMenuApiClient. It catches every exception from the menu call and returns null, so a menu outage turns into the error view instead of a crash.
Purpose¶
- Fetch the user's menu from the BOL Menu API and convert failures to null (BR-BOLMIDDLEWARE-016, BR-BOLMIDDLEWARE-021).
Context¶
- Namespace:
BolMiddleware.Services.Menu - Assembly/package:
BolMiddleware
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| Constructor | MenuService(IBolMenuApiClient client) |
Receives the BOL Menu API client. |
GetMenu |
BusinessOnlineMenu? GetMenu(string userId) |
Calls the API and returns null on any exception. |
Behavioral notes¶
- The exception is not logged here; the cause is lost.
Constraints and usage notes¶
- Callers must handle null.
Sources¶
- src/BolMiddleware/Services/Menu/MenuService.cs