5 references to GetConsumerIdentity
Aspire.Hosting.Azure.EntraId (5)
EntraIdApplicationResource.cs (5)
401if (!target.IsExcludedFromPublish() && EntraIdFederatedIdentityCredential.GetConsumerIdentity(target) is { } targetIdentity) 408identities.AddRange(Consumers.Where(c => !c.IsExcludedFromPublish()).Select(EntraIdFederatedIdentityCredential.GetConsumerIdentity).OfType<AzureUserAssignedIdentityResource>()); 1114var consumerIdentity = GetConsumerIdentity(consumer) 1137return (credential.ManagedIdentity ?? GetConsumerIdentity(consumer))!.ClientId; 1145=> credential.ManagedIdentity is not null || GetConsumerIdentity(consumer) is not null ? ClientId : null;