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)
Regex obfuscate email
Use this code in C# to obfuscate email using regex // Online C# Editor for free // Write, Edit and Run your C# code using C# Online Compile...
-
If we get this error while trying to get http reponse using HttpClient object, it could mean that certificate validation fails for the remo...
-
To install SQLServer module in powershell we need to add the nuget package provider first with command: Install-PackageProvider -Name NuGet ...
-
While querying for events in a list which fall under a specified time period, the infopath form works correctly in client side editor, but ...
No comments:
Post a Comment