-
Using HttpClient on Azure Functions
Summary HttpClient use a socket-line resource of your server. So, you don’t make many HttpClient instance. If you can share instance for HttpClient. It’s the same also Azure Functions. Prerequisites .NET Core v3.1 Azure Functions v3 Microsoft.NET.Sdk.Functions v3.0.3 Microsoft.Azure.Functions.Extensions v1.1.0 Microsoft.Extension.Http v3.1.20 Visual Studio for Mac v8.10 Azure Functions Core Tools v3.0.3873 C# v8 macOS…
-
Using Time Zone ID on .NET Core v3.1 under multi-platform
Summary How do I specify the timezone ID in .NET Core v3.1? In macOS v11.6, the Time Zone Database is within the /usr/share/zoneinfo directory. Therefore, when specifying the time zone id in Swift, do as follows. It’s the same for macOS and iOS. On the other hand, in .NET Core v3.1 (Windows), specify as follows.…
-
Using enum with System.Flags
What is System.Flags?
-
Using the FunctionsStartup with Azure Functions
How to use the App startup on Azure Functions? The FunctionsStartup is App startup on Azure Functions.
-
Using the System.Text.Json.JsonSerializer with Azure Functions
Summary What is System.Text.Json.JsonSerializerclass? I’ve been using JSON.NET by Newtonsoft in .NET Framework v4, but I’m not familiar with the above class.So, I try to use System.Text.Json.JsonSerializer class. Prerequisites Azure Functions v3 Microsoft.NET.Sdk.Functions v3.0.13 netcoreapp3.1 C# 8 .NET Core v3.1 Visual Studio 2019 Windows 10 v21H1 Steps A simply usage of System.Text.Json is as follows:…
-
Send HTTP Request in C#
It’s been a while since I send HTTP Request in C#.So, I wrote this post as my note. Prerequisites .NET Core 3.1 C# v8 Visual Studio 2019 Windows 10 v21H1 Not good case If it’s a trial code that only you use, this is fine. Not suitable for commercial services. If you are possible, HTTPClient…