Skip to content
Docs Try Aspire

getService

Function
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface IServiceProvider {
// ... omitted for brevity
getService(typeId: string): any;
}

Signature

method getService
Gets a service by ATS type ID
getService(typeId: string): any
typeId string
any

Applies to

This function is an extension method on the following types: