When there is a need to call a web api endpoint using C#, we could write each request separately in code, but this can quickly make the library bulky and unmanageable. The better approach is to use a generic base class which encapsulates common functions across all such clients. Here is a sample implementation of such a class
Subscribe to:
Post Comments (Atom)
c# httpclient The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch
If we get this error while trying to get http reponse using HttpClient object, it could mean that certificate validation fails for the remo...
-
SharePoint has a great feature to set terms which can be used to tag contents and enable terms based navigation and several other interesti...
-
More often than not, this error simply means that SharePoint client secrets are incorrect. A detailed explanation and steps to resolve this ...
-
Secure Microservices Using JWT With Ocelot in .NET Core (code-maze.com)
No comments:
Post a Comment