19 references to FromHexString
Aspire.Cli.Tests (1)
Agents\SigstoreNpmProvenanceCheckerTests.cs (1)
1283=> $"sha512-{Convert.ToBase64String(Convert.FromHexString(hexDigest))}";
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.Traces.Reads.cs (1)
752var trace = new OtlpTrace(Convert.FromHexString(traceId), new DateTime(firstRecord.LastUpdatedTimestampTicks, DateTimeKind.Utc));
Aspire.Dashboard.Components.Tests (3)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (3)
45var bytes = Convert.FromHexString(hexString); 205TraceId = (traceId != null) ? ByteString.CopyFrom(Encoding.UTF8.GetBytes(traceId)) : ByteString.CopyFrom(Convert.FromHexString("5465737454726163654964")), 206SpanId = (spanId != null) ? ByteString.CopyFrom(Encoding.UTF8.GetBytes(spanId)) : ByteString.CopyFrom(Convert.FromHexString("546573745370616e4964")),
Aspire.Dashboard.Tests (9)
Integration\StartupTests.cs (1)
560Assert.Equal(16, Convert.FromHexString(app.DashboardOptionsMonitor.CurrentValue.Frontend.BrowserToken!).Length);
TelemetryApiServiceTests.cs (4)
135var traceId = Encoding.UTF8.GetString(Convert.FromHexString("747261636531")); 160var traceId = Encoding.UTF8.GetString(Convert.FromHexString("747261636531")); 185var traceId = Encoding.UTF8.GetString(Convert.FromHexString("747261636531")); 851return Encoding.UTF8.GetString(Convert.FromHexString(hexSpanId));
TelemetryRepositoryTests\TraceTests.cs (1)
3730var traceId = Encoding.UTF8.GetString(Convert.FromHexString("747261636531"));
tests\Shared\Telemetry\TelemetryTestHelpers.cs (3)
45var bytes = Convert.FromHexString(hexString); 205TraceId = (traceId != null) ? ByteString.CopyFrom(Encoding.UTF8.GetBytes(traceId)) : ByteString.CopyFrom(Convert.FromHexString("5465737454726163654964")), 206SpanId = (spanId != null) ? ByteString.CopyFrom(Encoding.UTF8.GetBytes(spanId)) : ByteString.CopyFrom(Convert.FromHexString("546573745370616e4964")),
Aspire.Hosting.Foundry (1)
Project\ProjectResource.cs (1)
267var bytes = Convert.FromHexString(guid.ToString("N"));
Aspire.Hosting.Tests (1)
DistributedApplicationTests.cs (1)
1392var keyBytes = Convert.FromHexString(GetEnv(aspireDashboard.Spec.Env, "DASHBOARD__OTLP__PRIMARYAPIKEY")!);
Infrastructure.Tests (2)
Pipelines\NixCliPackageTests.cs (2)
105var expectedHash = "sha512-" + Convert.ToBase64String(Convert.FromHexString(new string('a', 128))); 171var expectedHash = "sha512-" + Convert.ToBase64String(Convert.FromHexString(hexByRid[rid]));
Microsoft.NET.Build.Containers (1)
DigestUtils.cs (1)
162encodedValue = Convert.FromHexString(encoded);