Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.
// Returns an instance of type T associated with the private key.
getInstance<T extends object>(key: string): T;The IServiceProvider instance is available on the services property of IApplicationBuilder and IFetchContext.