9 writes to IsEnabled
Aspire.Hosting.Azure.EntraId (1)
EntraIdResourceExtensions.cs (1)
2475
scope.
IsEnabled
= options.IsEnabled ?? true;
Aspire.Hosting.Azure.EntraId.Tests (8)
EntraIdApiProvisioningTests.cs (7)
60
.WithScope("orders.write", "Write orders.", scope => scope.
IsEnabled
= false);
489
.WithScope("retired", "Retired.", scope => scope.
IsEnabled
= false);
512
api.Resource.Scopes[0].
IsEnabled
= false;
532
api.Resource.Scopes[0].
IsEnabled
= false;
552
existingApi.Resource.Scopes[0].
IsEnabled
= false;
690
.WithScope("retired", "Retired.", scope => scope.
IsEnabled
= false);
1022
.WithScope("retired", "Retired.", scope => { scope.Id = Guid.NewGuid(); scope.
IsEnabled
= false; })
EntraIdPolyglotTests.cs (1)
460
scope.
IsEnabled
= false;
7 references to IsEnabled
Aspire.Hosting.Azure.EntraId (7)
EntraIdApi.cs (1)
354
/// To retire a scope, set <see cref="
IsEnabled
"/> to <see langword="false"/>, deploy, and then remove the scope in a later deployment.
EntraIdApplicationResource.cs (2)
290
foreach (var scope in access.Declared.Select(static p => p.Scope).OfType<EntraIdScope>().Where(static s => !s.
IsEnabled
))
300
foreach (var scope in preAuthorized.Scopes.Where(static s => !s.
IsEnabled
))
EntraIdResourceExtensions.cs (3)
2390
/// To retire a scope, set <see cref="EntraIdScope.
IsEnabled
"/> to <see langword="false"/> and deploy, and remove the scope in a later deployment.
2895
if (!scope.
IsEnabled
)
3191
var exposedScopes = entra.Scopes.Where(static s => s.
IsEnabled
).Select(static s => s.Name).ToArray();
Provisioning\EntraIdApiProvisioning.cs (1)
99
IsEnabled = scope.
IsEnabled
,