Skip to main content
Google Cloud Documentation
Technology areas
  • AI and ML
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Distributed, hybrid, and multicloud
  • Generative AI
  • Industry solutions
  • Networking
  • Observability and monitoring
  • Security
  • Storage
Cross-product tools
  • Access and resources management
  • Costs and usage management
  • Infrastructure as code
  • Migration
  • SDK, languages, frameworks, and tools
/
Console
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Português – Brasil
  • 中文 – 简体
  • 日本語
  • 한국어
Sign in
  • .NET
  • Client libraries
Start free
Overview Guides Reference Samples
Google Cloud Documentation
  • Technology areas
    • More
    • Overview
    • Guides
    • Reference
    • Samples
  • Cross-product tools
    • More
  • Console
  • Overview
  • Library reference docs
  • Client library help
  • Google.Api.CommonProtos
  • Google.Api.Gax
  • Google.Apis
  • Google.Apps.Script.Type
  • Google.Cloud.AIPlatform.V1
  • Google.Cloud.AIPlatform.V1Beta1
  • Google.Cloud.AccessApproval.V1
  • Google.Cloud.AdvisoryNotifications.V1
  • Google.Cloud.AlloyDb.V1
  • Google.Cloud.AlloyDb.V1Alpha
  • Google.Cloud.AlloyDb.V1Beta
  • Google.Cloud.ApiGateway.V1
  • Google.Cloud.ApiHub.V1
  • Google.Cloud.ApiKeys.V2
  • Google.Cloud.ApigeeConnect.V1
  • Google.Cloud.ApigeeRegistry.V1
  • Google.Cloud.AppEngine.Logging.V1
  • Google.Cloud.AppEngine.V1
  • Google.Cloud.AppHub.V1
  • Google.Cloud.ArtifactRegistry.V1
  • Google.Cloud.ArtifactRegistry.V1Beta2
  • Google.Cloud.Asset.V1
  • Google.Cloud.AssuredWorkloads.V1
  • Google.Cloud.AssuredWorkloads.V1Beta1
  • Google.Cloud.Audit
  • Google.Cloud.AutoML.V1
  • Google.Cloud.BackupDR.V1
  • Google.Cloud.BareMetalSolution.V2
  • Google.Cloud.Batch.V1
  • Google.Cloud.Batch.V1Alpha
  • Google.Cloud.BeyondCorp.AppConnections.V1
  • Google.Cloud.BeyondCorp.AppConnectors.V1
  • Google.Cloud.BeyondCorp.AppGateways.V1
  • Google.Cloud.BeyondCorp.ClientConnectorServices.V1
  • Google.Cloud.BeyondCorp.ClientGateways.V1
  • Google.Cloud.BigQuery.AnalyticsHub.V1
  • Google.Cloud.BigQuery.Connection.V1
  • Google.Cloud.BigQuery.DataExchange.Common
  • Google.Cloud.BigQuery.DataExchange.V1Beta1
  • Google.Cloud.BigQuery.DataPolicies.V1
  • Google.Cloud.BigQuery.DataPolicies.V1Beta1
  • Google.Cloud.BigQuery.DataTransfer.V1
  • Google.Cloud.BigQuery.Logging.V1
  • Google.Cloud.BigQuery.Migration.V2
  • Google.Cloud.BigQuery.Reservation.V1
  • Google.Cloud.BigQuery.Storage.V1
  • Google.Cloud.BigQuery.V2
  • Google.Cloud.Bigtable.Admin.V2
  • Google.Cloud.Bigtable.Common.V2
  • Google.Cloud.Bigtable.V2
  • Google.Cloud.Billing.Budgets.V1
  • Google.Cloud.Billing.Budgets.V1Beta1
  • Google.Cloud.Billing.V1
  • Google.Cloud.BinaryAuthorization.V1
  • Google.Cloud.BinaryAuthorization.V1Beta1
  • Google.Cloud.CapacityPlanner.V1Beta
  • Google.Cloud.CertificateManager.V1
  • Google.Cloud.Channel.V1
  • Google.Cloud.Chronicle.V1
  • Google.Cloud.CloudBuild.V1
  • Google.Cloud.CloudBuild.V2
  • Google.Cloud.CloudControlsPartner.V1
  • Google.Cloud.CloudControlsPartner.V1Beta
  • Google.Cloud.CloudDms.V1
  • Google.Cloud.CloudQuotas.V1
  • Google.Cloud.CloudQuotas.V1Beta
  • Google.Cloud.CloudSecurityCompliance.V1
  • Google.Cloud.Commerce.Consumer.Procurement.V1
  • Google.Cloud.Common
  • Google.Cloud.Compute.V1
  • Google.Cloud.ConfidentialComputing.V1
  • Google.Cloud.ConfidentialComputing.V1Alpha1
  • Google.Cloud.Config.V1
  • Google.Cloud.Connectors.V1
  • Google.Cloud.ContactCenterInsights.V1
  • Google.Cloud.Container.V1
  • Google.Cloud.DataCatalog.Lineage.V1
  • Google.Cloud.DataCatalog.V1
  • Google.Cloud.DataFusion.V1
  • Google.Cloud.DataQnA.V1Alpha
  • Google.Cloud.DatabaseCenter.V1Beta
  • Google.Cloud.Dataflow.V1Beta3
  • Google.Cloud.Dataform.V1
  • Google.Cloud.Dataform.V1Beta1
  • Google.Cloud.Dataplex.V1
  • Google.Cloud.Dataproc.V1
  • Google.Cloud.Datastore.Admin.V1
  • Google.Cloud.Datastore.V1
  • Google.Cloud.Datastream.V1
  • Google.Cloud.Datastream.V1Alpha1
  • Google.Cloud.Debugger.V2
  • Google.Cloud.Deploy.V1
  • Google.Cloud.DevTools.Common
  • Google.Cloud.DevTools.ContainerAnalysis.V1
  • Google.Cloud.DeveloperConnect.V1
  • Google.Cloud.DeviceStreaming.V1
  • Google.Cloud.Diagnostics.AspNetCore
  • Google.Cloud.Diagnostics.AspNetCore3
  • Google.Cloud.Diagnostics.Common
  • Google.Cloud.Dialogflow.Cx.V3
  • Google.Cloud.Dialogflow.V2
  • Google.Cloud.Dialogflow.V2Beta1
  • Google.Cloud.DiscoveryEngine.V1
  • Google.Cloud.DiscoveryEngine.V1Beta
  • Google.Cloud.Dlp.V2
  • Google.Cloud.DocumentAI.V1
  • Google.Cloud.DocumentAI.V1Beta3
  • Google.Cloud.Domains.V1
  • Google.Cloud.Domains.V1Beta1
  • Google.Cloud.EdgeNetwork.V1
  • Google.Cloud.EnterpriseKnowledgeGraph.V1
  • Google.Cloud.ErrorReporting.V1Beta1
  • Google.Cloud.EssentialContacts.V1
  • Google.Cloud.Eventarc.Publishing.V1
  • Google.Cloud.Eventarc.V1
  • Google.Cloud.Filestore.V1
  • Google.Cloud.FinancialServices.V1
  • Google.Cloud.Firestore
  • Google.Cloud.Firestore.Admin.V1
  • Google.Cloud.Firestore.V1
  • Google.Cloud.Functions.V1
  • Google.Cloud.Functions.V2
  • Google.Cloud.Functions.V2Beta
  • Google.Cloud.GSuiteAddOns.V1
  • Google.Cloud.Gaming.V1
  • Google.Cloud.Gaming.V1Beta
  • Google.Cloud.GdcHardwareManagement.V1Alpha
  • Google.Cloud.GeminiDataAnalytics.V1Beta
  • Google.Cloud.GkeBackup.V1
  • Google.Cloud.GkeConnect.Gateway.V1
  • Google.Cloud.GkeConnect.Gateway.V1Beta1
  • Google.Cloud.GkeHub.V1
  • Google.Cloud.GkeHub.V1Beta1
  • Google.Cloud.GkeMultiCloud.V1
    • Overview
      • Getting started
      • Version history
    • Microsoft.Extensions.DependencyInjection (namespace)
      • All types
      • ServiceCollectionExtensions
    • All types
    • AttachedCluster
    • AttachedCluster.Types
    • AttachedCluster.Types.State
    • AttachedClusterError
    • AttachedClusterGroup
    • AttachedClusterName
    • AttachedClusterName.ResourceNameType
    • AttachedClusterUser
    • AttachedClusters
    • AttachedClusters.AttachedClustersBase
    • AttachedClusters.AttachedClustersClient
    • AttachedClustersAuthorization
    • AttachedClustersClient
    • AttachedClustersClientBuilder
    • AttachedClustersClientImpl
    • AttachedClustersSettings
    • AttachedOidcConfig
    • AttachedPlatformVersionInfo
    • AttachedProxyConfig
    • AttachedServerConfig
    • AttachedServerConfigName
    • AttachedServerConfigName.ResourceNameType
    • AwsAuthorization
    • AwsAutoscalingGroupMetricsCollection
    • AwsCluster
    • AwsCluster.Types
    • AwsCluster.Types.State
    • AwsClusterError
    • AwsClusterGroup
    • AwsClusterName
    • AwsClusterName.ResourceNameType
    • AwsClusterNetworking
    • AwsClusterUser
    • AwsClusters
    • AwsClusters.AwsClustersBase
    • AwsClusters.AwsClustersClient
    • AwsClustersClient
    • AwsClustersClientBuilder
    • AwsClustersClientImpl
    • AwsClustersSettings
    • AwsConfigEncryption
    • AwsControlPlane
    • AwsDatabaseEncryption
    • AwsInstancePlacement
    • AwsInstancePlacement.Types
    • AwsInstancePlacement.Types.Tenancy
    • AwsJsonWebKeys
    • AwsK8sVersionInfo
    • AwsNodeConfig
    • AwsNodeManagement
    • AwsNodePool
    • AwsNodePool.Types
    • AwsNodePool.Types.State
    • AwsNodePoolAutoscaling
    • AwsNodePoolError
    • AwsNodePoolName
    • AwsNodePoolName.ResourceNameType
    • AwsOpenIdConfig
    • AwsProxyConfig
    • AwsServerConfig
    • AwsServerConfigName
    • AwsServerConfigName.ResourceNameType
    • AwsServicesAuthentication
    • AwsSshConfig
    • AwsVolumeTemplate
    • AwsVolumeTemplate.Types
    • AwsVolumeTemplate.Types.VolumeType
    • AzureAuthorization
    • AzureClient
    • AzureClientName
    • AzureClientName.ResourceNameType
    • AzureCluster
    • AzureCluster.Types
    • AzureCluster.Types.State
    • AzureClusterError
    • AzureClusterGroup
    • AzureClusterName
    • AzureClusterName.ResourceNameType
    • AzureClusterNetworking
    • AzureClusterResources
    • AzureClusterUser
    • AzureClusters
    • AzureClusters.AzureClustersBase
    • AzureClusters.AzureClustersClient
    • AzureClustersClient
    • AzureClustersClientBuilder
    • AzureClustersClientImpl
    • AzureClustersSettings
    • AzureConfigEncryption
    • AzureControlPlane
    • AzureDatabaseEncryption
    • AzureDiskTemplate
    • AzureJsonWebKeys
    • AzureK8sVersionInfo
    • AzureNodeConfig
    • AzureNodeManagement
    • AzureNodePool
    • AzureNodePool.Types
    • AzureNodePool.Types.State
    • AzureNodePoolAutoscaling
    • AzureNodePoolError
    • AzureNodePoolName
    • AzureNodePoolName.ResourceNameType
    • AzureOpenIdConfig
    • AzureProxyConfig
    • AzureServerConfig
    • AzureServerConfigName
    • AzureServerConfigName.ResourceNameType
    • AzureServicesAuthentication
    • AzureSshConfig
    • BinaryAuthorization
    • BinaryAuthorization.Types
    • BinaryAuthorization.Types.EvaluationMode
    • CloudMonitoringConfig
    • CreateAttachedClusterRequest
    • CreateAwsClusterRequest
    • CreateAwsNodePoolRequest
    • CreateAzureClientRequest
    • CreateAzureClusterRequest
    • CreateAzureNodePoolRequest
    • DeleteAttachedClusterRequest
    • DeleteAwsClusterRequest
    • DeleteAwsNodePoolRequest
    • DeleteAzureClientRequest
    • DeleteAzureClusterRequest
    • DeleteAzureNodePoolRequest
    • Fleet
    • GenerateAttachedClusterAgentTokenRequest
    • GenerateAttachedClusterAgentTokenResponse
    • GenerateAttachedClusterInstallManifestRequest
    • GenerateAttachedClusterInstallManifestResponse
    • GenerateAwsAccessTokenRequest
    • GenerateAwsAccessTokenResponse
    • GenerateAwsClusterAgentTokenRequest
    • GenerateAwsClusterAgentTokenResponse
    • GenerateAzureAccessTokenRequest
    • GenerateAzureAccessTokenResponse
    • GenerateAzureClusterAgentTokenRequest
    • GenerateAzureClusterAgentTokenResponse
    • GetAttachedClusterRequest
    • GetAttachedServerConfigRequest
    • GetAwsClusterRequest
    • GetAwsJsonWebKeysRequest
    • GetAwsNodePoolRequest
    • GetAwsOpenIdConfigRequest
    • GetAwsServerConfigRequest
    • GetAzureClientRequest
    • GetAzureClusterRequest
    • GetAzureJsonWebKeysRequest
    • GetAzureNodePoolRequest
    • GetAzureOpenIdConfigRequest
    • GetAzureServerConfigRequest
    • ImportAttachedClusterRequest
    • Jwk
    • KubernetesSecret
    • Label
    • ListAttachedClustersRequest
    • ListAttachedClustersResponse
    • ListAwsClustersRequest
    • ListAwsClustersResponse
    • ListAwsNodePoolsRequest
    • ListAwsNodePoolsResponse
    • ListAzureClientsRequest
    • ListAzureClientsResponse
    • ListAzureClustersRequest
    • ListAzureClustersResponse
    • ListAzureNodePoolsRequest
    • ListAzureNodePoolsResponse
    • LoggingComponentConfig
    • LoggingComponentConfig.Types
    • LoggingComponentConfig.Types.Component
    • LoggingConfig
    • ManagedPrometheusConfig
    • MaxPodsConstraint
    • MonitoringConfig
    • NodeKubeletConfig
    • NodeTaint
    • NodeTaint.Types
    • NodeTaint.Types.Effect
    • OperationMetadata
    • ReplicaPlacement
    • RollbackAwsNodePoolUpdateRequest
    • SecurityPostureConfig
    • SecurityPostureConfig.Types
    • SecurityPostureConfig.Types.VulnerabilityMode
    • SpotConfig
    • SurgeSettings
    • SystemComponentsConfig
    • Toleration
    • Toleration.Types
    • Toleration.Types.Effect
    • Toleration.Types.KeyOperator
    • UpdateAttachedClusterRequest
    • UpdateAwsClusterRequest
    • UpdateAwsNodePoolRequest
    • UpdateAzureClusterRequest
    • UpdateAzureNodePoolRequest
    • UpdateSettings
    • WorkloadIdentityConfig
  • Google.Cloud.HypercomputeCluster.V1Beta
  • Google.Cloud.Iam.Admin.V1
  • Google.Cloud.Iam.Credentials.V1
  • Google.Cloud.Iam.V1
  • Google.Cloud.Iam.V2
  • Google.Cloud.Iam.V3
  • Google.Cloud.Iam.V3Beta
  • Google.Cloud.Iap.V1
  • Google.Cloud.Ids.V1
  • Google.Cloud.Iot.V1
  • Google.Cloud.Kms.Inventory.V1
  • Google.Cloud.Kms.V1
  • Google.Cloud.Language.V1
  • Google.Cloud.Language.V2
  • Google.Cloud.LifeSciences.V2Beta
  • Google.Cloud.Location
  • Google.Cloud.LocationFinder.V1
  • Google.Cloud.Logging.Console
  • Google.Cloud.Logging.Log4Net
  • Google.Cloud.Logging.NLog
  • Google.Cloud.Logging.Type
  • Google.Cloud.Logging.V2
  • Google.Cloud.Lustre.V1
  • Google.Cloud.Maintenance.Api.V1Beta
  • Google.Cloud.ManagedIdentities.V1
  • Google.Cloud.ManagedKafka.V1
  • Google.Cloud.MediaTranslation.V1Beta1
  • Google.Cloud.Memcache.V1
  • Google.Cloud.Memcache.V1Beta2
  • Google.Cloud.Memorystore.V1
  • Google.Cloud.Memorystore.V1Beta
  • Google.Cloud.Metastore.V1
  • Google.Cloud.Metastore.V1Alpha
  • Google.Cloud.Metastore.V1Beta
  • Google.Cloud.MigrationCenter.V1
  • Google.Cloud.ModelArmor.V1
  • Google.Cloud.ModelArmor.V1Beta
  • Google.Cloud.Monitoring.V3
  • Google.Cloud.NetApp.V1
  • Google.Cloud.NetworkConnectivity.V1
  • Google.Cloud.NetworkConnectivity.V1Alpha1
  • Google.Cloud.NetworkManagement.V1
  • Google.Cloud.NetworkSecurity.V1Beta1
  • Google.Cloud.NetworkServices.V1
  • Google.Cloud.Notebooks.V1
  • Google.Cloud.Notebooks.V1Beta1
  • Google.Cloud.Notebooks.V2
  • Google.Cloud.Optimization.V1
  • Google.Cloud.OracleDatabase.V1
  • Google.Cloud.Orchestration.Airflow.Service.V1
  • Google.Cloud.OrgPolicy.V1
  • Google.Cloud.OrgPolicy.V2
  • Google.Cloud.OsConfig.V1
  • Google.Cloud.OsConfig.V1Alpha
  • Google.Cloud.OsLogin.Common
  • Google.Cloud.OsLogin.V1
  • Google.Cloud.OsLogin.V1Beta
  • Google.Cloud.Parallelstore.V1
  • Google.Cloud.Parallelstore.V1Beta
  • Google.Cloud.ParameterManager.V1
  • Google.Cloud.PhishingProtection.V1Beta1
  • Google.Cloud.PolicySimulator.V1
  • Google.Cloud.PolicyTroubleshooter.Iam.V3
  • Google.Cloud.PolicyTroubleshooter.V1
  • Google.Cloud.PrivateCatalog.V1Beta1
  • Google.Cloud.PrivilegedAccessManager.V1
  • Google.Cloud.Profiler.V2
  • Google.Cloud.PubSub.V1
  • Google.Cloud.RapidMigrationAssessment.V1
  • Google.Cloud.RecaptchaEnterprise.V1
  • Google.Cloud.RecaptchaEnterprise.V1Beta1
  • Google.Cloud.RecommendationEngine.V1Beta1
  • Google.Cloud.Recommender.V1
  • Google.Cloud.Redis.Cluster.V1
  • Google.Cloud.Redis.V1
  • Google.Cloud.Redis.V1Beta1
  • Google.Cloud.ResourceManager.V3
  • Google.Cloud.Retail.V2
  • Google.Cloud.Run.V2
  • Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1
  • Google.Cloud.Scheduler.V1
  • Google.Cloud.SecretManager.V1
  • Google.Cloud.SecretManager.V1Beta1
  • Google.Cloud.SecretManager.V1Beta2
  • Google.Cloud.Security.PrivateCA.V1
  • Google.Cloud.Security.PublicCA.V1
  • Google.Cloud.Security.PublicCA.V1Beta1
  • Google.Cloud.SecurityCenter.Settings.V1Beta1
  • Google.Cloud.SecurityCenter.V1
  • Google.Cloud.SecurityCenter.V1P1Beta1
  • Google.Cloud.SecurityCenter.V2
  • Google.Cloud.SecurityCenterManagement.V1
  • Google.Cloud.ServiceControl.V1
  • Google.Cloud.ServiceDirectory.V1
  • Google.Cloud.ServiceDirectory.V1Beta1
  • Google.Cloud.ServiceHealth.V1
  • Google.Cloud.ServiceManagement.V1
  • Google.Cloud.ServiceUsage.V1
  • Google.Cloud.Shell.V1
  • Google.Cloud.Spanner.Admin.Database.V1
  • Google.Cloud.Spanner.Admin.Instance.V1
  • Google.Cloud.Spanner.Common.V1
  • Google.Cloud.Spanner.Data
  • Google.Cloud.Spanner.V1
  • Google.Cloud.Speech.V1
  • Google.Cloud.Speech.V1P1Beta1
  • Google.Cloud.Speech.V2
  • Google.Cloud.Storage.Control.V2
  • Google.Cloud.Storage.V1
  • Google.Cloud.StorageBatchOperations.V1
  • Google.Cloud.StorageInsights.V1
  • Google.Cloud.StorageTransfer.V1
  • Google.Cloud.Support.V2
  • Google.Cloud.Support.V2Beta
  • Google.Cloud.Talent.V4
  • Google.Cloud.Talent.V4Beta1
  • Google.Cloud.Tasks.V2
  • Google.Cloud.Tasks.V2Beta3
  • Google.Cloud.TelcoAutomation.V1
  • Google.Cloud.TextToSpeech.V1
  • Google.Cloud.TextToSpeech.V1Beta1
  • Google.Cloud.Tpu.V1
  • Google.Cloud.Trace.V1
  • Google.Cloud.Trace.V2
  • Google.Cloud.Translate.V3
  • Google.Cloud.Translation.V2
  • Google.Cloud.VMMigration.V1
  • Google.Cloud.VertexAI.Extensions
  • Google.Cloud.Video.LiveStream.V1
  • Google.Cloud.Video.Stitcher.V1
  • Google.Cloud.Video.Transcoder.V1
  • Google.Cloud.VideoIntelligence.V1
  • Google.Cloud.Vision.V1
  • Google.Cloud.VmwareEngine.V1
  • Google.Cloud.VpcAccess.V1
  • Google.Cloud.WebRisk.V1
  • Google.Cloud.WebRisk.V1Beta1
  • Google.Cloud.WebSecurityScanner.V1
  • Google.Cloud.Workflows.Common.V1
  • Google.Cloud.Workflows.Common.V1Beta
  • Google.Cloud.Workflows.Executions.V1
  • Google.Cloud.Workflows.Executions.V1Beta
  • Google.Cloud.Workflows.V1
  • Google.Cloud.Workflows.V1Beta
  • Google.Cloud.Workstations.V1
  • Google.Identity.AccessContextManager.Type
  • Google.Identity.AccessContextManager.V1
  • Google.LongRunning
  • Google.Protobuf
  • Grafeas.V1
  • Grpc.Auth
  • AI and ML
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Distributed, hybrid, and multicloud
  • Generative AI
  • Industry solutions
  • Networking
  • Observability and monitoring
  • Security
  • Storage
  • Access and resources management
  • Costs and usage management
  • Infrastructure as code
  • Migration
  • SDK, languages, frameworks, and tools
  • Home
  • Technology areas
  • .NET
  • Client libraries

Anthos Multi-Cloud v1 API - Namespace Microsoft.Extensions.DependencyInjection (2.10.0) Stay organized with collections Save and categorize content based on your preferences.

  • 2.10.0 (latest)
  • 2.9.0
  • 2.8.0
  • 2.7.0
  • 2.6.0
  • 2.5.0
  • 2.4.0
  • 2.3.0
  • 2.2.0
  • 2.1.0
  • 2.0.0
  • 1.0.0-beta01

Classes

ServiceCollectionExtensions

Static class to provide extension methods to configure API clients.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-07 UTC.

  • Products and pricing

    • See all products
    • Google Cloud pricing
    • Google Cloud Marketplace
    • Contact sales
  • Support

    • Community forums
    • Support
    • Release Notes
    • System status
  • Resources

    • GitHub
    • Getting Started with Google Cloud
    • Code samples
    • Cloud Architecture Center
    • Training and Certification
  • Engage

    • Blog
    • Events
    • X (Twitter)
    • Google Cloud on YouTube
    • Google Cloud Tech on YouTube
  • About Google
  • Privacy
  • Site terms
  • Google Cloud terms
  • Manage cookies
  • Our third decade of climate action: join us
  • Sign up for the Google Cloud newsletter Subscribe
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Português – Brasil
  • 中文 – 简体
  • 日本語
  • 한국어