You are developing a Windows Communication Foundation (WCF) service to provide shopping cart support. ASP.NET compatibility mode is not enabled. The shopping cart information must be retained across user visits to the store until the user explicitly empties the cart or submits the cart contents to order.You need to implement the service as a DurableService.Which two actions should you perform? ()(Each correct answer presents part of the solution. Choose two.)
- A、Use basicHttpBinding for both the client application and the service.
- B、Create the persistence provider database and configure the persistenceProvider element of the service behavior to point to that database.
- C、Use wsHttpContextBinding for both the client application and the service.
- D、In the method to add an item to the shopping cart, serialize the shopping cart contents after adding the current item and storing it in a Session variable.
正确答案:B,C
答案解析:有
![](/editor/images/201705/qrcode_for_gh_573e2a458573_258.jpg)
微信扫一扫手机做题