32 references to Create
Aspire.Dashboard (2)
Model\TelemetryExportService.cs (1)
795return JsonValue.Create(value.NumberValue);
Otlp\Model\OtlpHelpers.cs (1)
176AnyValue.ValueOneofCase.DoubleValue => JsonValue.Create(value.DoubleValue),
Aspire.Hosting (1)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1403double doubleValue => JsonValue.Create(doubleValue),
Aspire.Hosting.RemoteHost (1)
Ats\AtsMarshaller.cs (1)
214return 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)! }, 261var value = JsonValue.Create(11433.0); 271var value = JsonValue.Create(11433.5); 312var value = JsonValue.Create(1500.0); 597var value = JsonValue.Create(5000000000d); 607var value = JsonValue.Create(9007199254740992d); 615var value = JsonValue.Create(3.14159); 625var value = JsonValue.Create(1e100); 635var value = JsonValue.Create(3.14); 655var 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);