https://kendaleiv.com/Ken DaleJesus follower, husband, father, software engineer. 2024-03-06T13:11:30-05:00 Ken Dale https://kendaleiv.com/ Jekyll © 2024 Ken Dale /assets/img/favicons/favicon.ico /assets/img/favicons/favicon-96x96.png C# Tasks Unexpectedly Running More Than Once (Async Lambda IEnumerable<Task> With foreach Loop)2024-03-06T00:00:00-05:00 2024-03-06T00:00:00-05:00 https://kendaleiv.com/csharp-tasks-unexpectedly-running-more-than-once-async-lambda-ienumerable-task-with-foreach-loop/ Ken Dale Consider the following example: using System; using System.Linq; using System.Threading.Tasks; public class Program { public static async Task Main() { var items = new[] { "a", "b", "c", "d", "e" }; var tasks = items.Select(async item => { Console.WriteLine(item); await Task.Delay(1); }) // One met... C# List<T> Add Method Missing Items When Count Inspected When Adding Items In An Async Task2024-03-06T00:00:00-05:00 2024-03-06T00:00:00-05:00 https://kendaleiv.com/csharp-list-t-add-method-missing-items-when-count-inspected-when-adding-items-in-an-async-task/ Ken Dale Consider the following example: using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; public class Program { public static async Task Main() { var items = new List<string>(); // Does not consistently write 100 to console on my machine // Potential fix, if ConcurrentBag<T> works ... Operating A Wi-Fi Enabled Robot Vacuum / Mop During A Home Internet Outage Using A Smartphone Hotspot2023-07-22T00:00:00-04:00 2023-07-22T00:00:00-04:00 https://kendaleiv.com/operating-a-wi-fi-enabled-robot-vacuum-mop-during-a-home-internet-outage-using-a-smartphone-hotspot/ Ken Dale Robot vacuums / mops are a convenient way to clean your home. If they are typically operated using Wi-Fi functionality may be limited during an internet outage. You can use your smartphone hotspot to get full functionality back during an internet outage by having a smartphone become the Wi-Fi network used by the robot vacuum / mop. Instructions Turn off the existing Wi-Fi network (to avoi... Previewing DACPAC Deployments By Generating Deployment Reports And Scripts2023-06-19T00:00:00-04:00 2023-06-19T00:00:00-04:00 https://kendaleiv.com/previewing-dacpac-deployments-by-generating-deployment-reports-and-scripts/ Ken Dale A DACPAC is a method for deploying a database via code. You specify the desired state of the database and the tooling determines how to modify the target database to match the desired state. (see https://learn.microsoft.com/en-us/sql/relational-databases/data-tier-applications/data-tier-applications for more details) You can preview what would happen if a specific DACPAC would be deployed to a... DACPAC Deployments Can Delete/Drop Indexes Not In DACPAC By Default2023-06-16T00:00:00-04:00 2023-06-16T00:00:00-04:00 https://kendaleiv.com/dacpac-deployments-can-delete-drop-indexes-not-in-dacpac-by-default/ Ken Dale A DACPAC is a method for deploying a database via code. You specify the desired state of the database and the tooling determines how to modify the target database to match the desired state. (see https://learn.microsoft.com/en-us/sql/relational-databases/data-tier-applications/data-tier-applications for more details) Deploying a DACPAC can result in indexes being deleted/dropped on the target ...