Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DexterPOSH/d6d7673abe55383af0b30d0f026ba57d to your computer and use it in GitHub Desktop.
Save DexterPOSH/d6d7673abe55383af0b30d0f026ba57d to your computer and use it in GitHub Desktop.
Method definition from SearchAzureRmGraph.cs
// Snipped code
private IEnumerable<string> GetSubscriptions()
{
if (this.Subscription != null)
{
return this.Subscription;
}
var accountSubscriptions = this.DefaultContext.Account.GetSubscriptions();
if (accountSubscriptions.Length > 0)
{
return accountSubscriptions;
}
return SubscriptionCache.GetSubscriptions(this.DefaultContext);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment