32 references to Create
Aspire.Dashboard (2)
Model\TelemetryExportService.cs (1)
797return JsonValue.Create(value.NumberValue);
Otlp\Model\OtlpHelpers.cs (1)
203AnyValue.ValueOneofCase.DoubleValue => JsonValue.Create(value.DoubleValue),
Aspire.Hosting (1)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1425double doubleValue => JsonValue.Create(doubleValue),
Aspire.Hosting.RemoteHost (1)
Ats\AtsMarshaller.cs (1)
234return JsonValue.Create(((TimeSpan)value).TotalMilliseconds);
Aspire.Hosting.RemoteHost.Tests (27)
AtsMarshallerTests.cs (27)
54{ typeof(byte), JsonValue.Create(42.0)!, (byte)42 }, 55{ typeof(short), JsonValue.Create(42.0)!, (short)42 }, 56{ typeof(uint), JsonValue.Create(42.0)!, 42u }, 57{ typeof(ulong), JsonValue.Create(42.0)!, 42ul }, 58{ typeof(ushort), JsonValue.Create(42.0)!, (ushort)42 }, 59{ typeof(sbyte), JsonValue.Create(42.0)!, (sbyte)42 }, 64{ typeof(byte), JsonValue.Create(42.5)! }, 65{ typeof(short), JsonValue.Create(42.5)! }, 66{ typeof(uint), JsonValue.Create(42.5)! }, 67{ typeof(ulong), JsonValue.Create(42.5)! }, 68{ typeof(ushort), JsonValue.Create(42.5)! }, 69{ typeof(sbyte), JsonValue.Create(42.5)! }, 74{ typeof(byte), JsonValue.Create(256.0)! }, 75{ typeof(short), JsonValue.Create(32768.0)! }, 76{ typeof(uint), JsonValue.Create(-1.0)! }, 77{ typeof(ulong), JsonValue.Create(-1.0)! }, 78{ typeof(ushort), JsonValue.Create(65536.0)! }, 79{ typeof(sbyte), JsonValue.Create(128.0)! }, 329var value = JsonValue.Create(11433.0); 339var value = JsonValue.Create(11433.5); 380var value = JsonValue.Create(1500.0); 665var value = JsonValue.Create(5000000000d); 675var value = JsonValue.Create(9007199254740992d); 683var value = JsonValue.Create(3.14159); 693var value = JsonValue.Create(1e100); 703var value = JsonValue.Create(3.14); 723var value = JsonValue.Create(1e100);
System.Text.Json (1)
System\Text\Json\Nodes\JsonNode.Operators.cs (1)
99public static implicit operator JsonNode(double value) => JsonValue.Create(value);