I have a Windows Presentation Foundation app using CEFSharp as a browser control. I’m porting it to use the new WebView2 control from Microsoft. That’s a workable idea now because it embeds a new Edge object in the WPF app. So, there’s no need to download the whole Chromium Embedded Framework mischegoss which saves download … Read more
We send data to a web service via POST, PUT, or PATCH. All these web requests carry a payload: one or more items of data. How do we code these web services to accept data?
Setting up your web service Dotnet’s stuff for developing web applications includes an inheritable class called ApiController. This makes it easy to develop REST-style web services, either for standalone API servers or in the context of larger servers. To start using ApiController, however, requires navigating lots of Microsoft documentation; as of early 2020 that documentation … Read more
Status Codes Real Web services have to be able to pass back a status code. Maybe it’s a plain 200 success code, or a 404 not found code. Whatever. We have to be able to control it. Here’s how. We’ll use the NegotiatedContentResult template class in the signature for the Get method. We have to … Read more