sparse-intern-71089
06/07/2022, 11:46 AMsilly-smartphone-71988
06/07/2022, 1:10 PMsilly-smartphone-71988
06/07/2022, 1:10 PMpublic RecoveryServices.ProtectionContainer? GetProtectionContainer(Output<string> containerName)
{
int idx = -1;
int counter = 0;
while (idx == -1 && counter < this.protectionContainers.Count)
{
_ = Output.Tuple(this.protectionContainers[counter].Name, containerName).Apply(t =>
{
if (t.Item1 == t.Item2) {
idx = counter;
return true;
}
else{
return false;
}
});
}
if(idx != -1)
{
return this.protectionContainers[idx];
}
else
{
return null;
}silly-smartphone-71988
06/08/2022, 1:13 PM