20 references to Convert
Aspire.Hosting.Azure.Provisioning (6)
BicepValueFactory.cs (6)
227BicepFunction.Concat([.. items.Select(static value => BicepValueProxy.Convert<string>(value))]), 243BicepFunction.CreateGuid([.. items.Select(static value => BicepValueProxy.Convert<string>(value))]), 259BicepFunction.GetUniqueString([.. items.Select(static value => BicepValueProxy.Convert<string>(value))]), 275BicepFunction.GetSubscriptionResourceId([.. items.Select(static value => BicepValueProxy.Convert<string>(value))]), 292BicepValueProxy.Convert<string>(value), 293BicepValueProxy.Convert<int>(count)),
Aspire.Hosting.Azure.Provisioning.Tests (14)
BicepValueProxyTests.cs (14)
105var converted = BicepValueProxy.Convert<int>(proxy); 116var converted = BicepValueProxy.Convert<string>(proxy); 129var converted = BicepValueProxy.Convert<IPAddress>(address); 131var roundTripped = BicepValueProxy.Convert<IPAddress>(proxy); 146Assert.Throws<FormatException>(() => BicepValueProxy.Convert<IPAddress>(address)); 156var converted = BicepValueProxy.Convert<IPAddress>(proxy); 188Assert.Throws<FormatException>(() => BicepValueProxy.Convert<IPAddress>(proxy)); 205var converted = BicepValueProxy.Convert<IPAddress>(proxy); 206var roundTripped = BicepValueProxy.Convert<IPAddress>(BicepValueProxy.Create(converted)); 223var converted = BicepValueProxy.Convert<IPAddress>(proxy); 238var converted = BicepValueProxy.Convert<IPAddress>(proxy); 250var converted = BicepValueProxy.Convert<IPAddress>(proxy); 261var exception = Assert.Throws<ArgumentException>(() => BicepValueProxy.Convert<IPAddress>(proxy)); 284var exception = Assert.Throws<ArgumentException>(() => BicepValueProxy.Convert<string>(proxy));