[Azure]Dotnet Core 3 Log With Application Insights
在 .Net Core 3 專案串接 Azure Application Insights:安裝 Microsoft.ApplicationInsights.AspNetCore,Startup.ConfigureServices 加入 AddApplicationInsightsTelemetry,並在 appsettings.json 設定…
Harry會在這分享各種技術心得, 同時也會分享一些敏捷相關的想法與引導方法!
在 .Net Core 3 專案串接 Azure Application Insights:安裝 Microsoft.ApplicationInsights.AspNetCore,Startup.ConfigureServices 加入 AddApplicationInsightsTelemetry,並在 appsettings.json 設定…
.Net Core 3.0 之前沒有 ServiceBase 可直接使用,本文示範在 .Net Core 2.x 透過實作 IHostLifetime (ServiceBaseLifetime) 與 IHostedService,再寫 HostBuilder 擴充方法 UseServiceBaseLifetime/RunAsServiceAsync,最後以…
在 Windows Server 2016 以上安裝 Docker EE 的踩坑紀錄:使用 PowerShell 以 Install-Module DockerMsftProvider 與 Install-Package -Name docker 安裝時會找不到 docker-19-03-1.zip,需先用 Start-BitsTransfer 下載並搭配…
團隊共創法五個步驟隨手小記:內容介紹(釐清焦點問題範疇)、腦力激盪(A5 卡片,每張 7–9 字)、組織群組(三輪依 Insight 直覺分群,前兩輪問深度/廣度)、命名群組(找背後洞見)、決定意義(用 ORID 收斂並決定行動)。
ORID 焦點討論法是引導者入門工具之一,透過 O 客觀事實、R 情緒反映、I 詮釋意義、D 行動決定四個層次的提問,引導參與者自然思考;文中分享圍繞目標設計問題、拿捏顆粒度、避免「為什麼」、不預設立場、抓尾巴等引導技巧。
部門為解決 Redis Pub/Sub 掉訊息、難監控、訊息無法持久化的風險改用 RabbitMQ;本文介紹 Fanout、Direct、Topic 三種 Exchange 機制,並以 docker-compose (rabbitmq:3-management) 建置環境,再用 EasyNetQ 的 RabbitHutch.CreateBus 實作…
介紹 C# Null 條件運算子 ?. 與合併運算子 ??:customer?.Id ?? "123456" 會在 customer 或 customer.Id 為 null 時回傳預設值,等同於 if (customer == null || customer.Id == null) 的判斷,把防空程式碼縮成一行。
解析 .Net SqlConnection Connection Pooling 機制:using 結束時連線並未真正釋放,而是回收進 Pool 供下一次同樣連線字串重用,約 4–8 分鐘才真正關閉;未正確釋放或 Pool Size 不足即可能觸發「已超過連接逾時的設定」,排查可檢查 using、Pool Size 與 Connection…
在非 MVC 架構上透過 NuGet 安裝 RazorEngine,把 .cshtml 模板交給 Engine.Razor.RunCompile 編譯成 HTML,並可傳入 ViewModel;進階可使用 TemplateServiceConfiguration 設定 Namespaces 與 DelegateTemplateManager 等 View…
Web API 2 客製化 ModelBinder 時出現「無法從 BaseBinder 建立 IModelBinder」例外,原因是 MVC 的 System.Web.Mvc.IModelBinder 與 Web API 的 System.Web.Http.IModelBinder 雖同名但在不同元件,using 引錯就會衝突,MVC 6 之後合併才解決。