コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
 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);
         }
     }
 }
コード例 #3
0
ファイル: OwnerController.cs プロジェクト: Den4ik1/TryOnion
 public OwnerController(IDomains domains)
 {
     _domains = domains;
 }
コード例 #4
0
		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);
				}
			}
		}
コード例 #5
0
 /// <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());
 }