/// <summary> /// Returns a list of domains associated with your services /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <CustomerDomain> > GetDomainsAsync(this IDomains operations, string subscriptionId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetDomainsWithHttpMessagesAsync(subscriptionId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
private void ExpandDomains(IDomains domains, TreeNode node) { if (HasBlankNode(node)) { foreach (IDomain domain in domains) { TreeNode n = new TreeNode(domain.Name); n.Tag = new NodeData(NodeType.DOMAIN, domain); n.SelectedImageIndex = n.ImageIndex = 25; node.Nodes.Add(n); } } }
public OwnerController(IDomains domains) { _domains = domains; }
private void ExpandDomains(IDomains domains, TreeNode node) { if(HasBlankNode(node)) { foreach(IDomain domain in domains) { TreeNode n = new TreeNode(domain.Name); n.Tag = new NodeData(NodeType.DOMAIN, domain); n.SelectedImageIndex = n.ImageIndex = 25; node.Nodes.Add(n); } } }
/// <summary> /// Returns a list of domains associated with your services /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// </param> public static IList <CustomerDomain> GetDomains(this IDomains operations, string subscriptionId) { return(operations.GetDomainsAsync(subscriptionId).GetAwaiter().GetResult()); }