Created
May 7, 2019 13:58
-
-
Save DexterPOSH/d6d7673abe55383af0b30d0f026ba57d to your computer and use it in GitHub Desktop.
Method definition from SearchAzureRmGraph.cs
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
// 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