Exemplo n.º 1
0
        private string CreateNetwork(string networkName)
        {
            string uniqueNetworkName = UniqueNameGenerator.CreateNetworkName(networkName);

            NetworksCreateResponse response = _client.Networks.CreateNetworkAsync(
                new NetworksCreateParameters()
            {
                Name = uniqueNetworkName
            }).Result;

            _uniqueNetworkNames.Add(networkName, uniqueNetworkName);
            return(response.ID);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Container name
 /// </summary>
 /// <param name="name">The name.</param>
 /// <returns></returns>
 public ContainerResourceBuilder Name(string name)
 {
     _options.Name = name;
     _options.UniqueContainerName = UniqueNameGenerator.CreateContainerName(name);
     return(this);
 }