This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Deadlock example in a Static Constructor | |
using System; | |
using System.Threading.Tasks; | |
public static class Program | |
{ | |
// Replacing "Log" with "Console.WriteLine" works. Why? | |
static Program() => Service.Do(Log); | |
public static void Main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Azure.Management.Fluent; | |
using Microsoft.Azure.Management.ResourceManager.Fluent; | |
using System; | |
namespace PlayWithAzure | |
{ | |
public class Program | |
{ | |
public static void Main() | |
{ |