Skip to content

Instantly share code, notes, and snippets.

View angellaa's full-sized avatar

Andrea Angella angellaa

View GitHub Profile
@angellaa
angellaa / ListSubscriptionsWithAzureFluentAPI.cs
Last active May 12, 2017 14:12
List subscriptions with Azure Fluent API
using Microsoft.Azure.Management.Fluent;
using Microsoft.Azure.Management.ResourceManager.Fluent;
using System;
namespace PlayWithAzure
{
public class Program
{
public static void Main()
{
@angellaa
angellaa / DeadlockStaticConstructor.cs
Created March 8, 2021 23:47
Deadlock in a Static Constructor
// 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() {}