4 writes to Id
Aspire.Hosting.Azure.EntraId.Tests (4)
EntraIdPolyglotTests.cs (4)
427
Id
= scopeId.ToString()
496
.WithScopeForExport("orders.read", "Read orders.", new EntraIdScopeOptions {
Id
= scopeId.ToString() });
527
.WithScopeForExport("orders.read", "Read orders.", new EntraIdScopeOptions {
Id
= "11112222-aaaa-3333-bbbb-4444cccc5555" });
541
Assert.Throws<ArgumentException>(() => api.WithScopeForExport("other", "Other.", new EntraIdScopeOptions {
Id
= "not-a-guid" }));
3 references to Id
Aspire.Hosting.Azure.EntraId (3)
EntraIdResourceExtensions.cs (3)
2475
if (options.
Id
is not null)
2477
scope.Id = Guid.TryParse(options.
Id
, out var id)
2479
: throw new ArgumentException($"'{options.
Id
}' is not a valid scope ID. Scope IDs must be GUIDs.", nameof(options));