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); }
/// <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); }