9 writes to IsEnabled
Aspire.Hosting.Azure.EntraId (1)
EntraIdResourceExtensions.cs (1)
2475scope.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); 512api.Resource.Scopes[0].IsEnabled = false; 532api.Resource.Scopes[0].IsEnabled = false; 552existingApi.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)
460scope.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)
290foreach (var scope in access.Declared.Select(static p => p.Scope).OfType<EntraIdScope>().Where(static s => !s.IsEnabled)) 300foreach (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. 2895if (!scope.IsEnabled) 3191var exposedScopes = entra.Scopes.Where(static s => s.IsEnabled).Select(static s => s.Name).ToArray();
Provisioning\EntraIdApiProvisioning.cs (1)
99IsEnabled = scope.IsEnabled,