Summary
Returns the registered TService whose concrete type is exactly TType.
- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
.Extensions - Containing Type
- Service
Collection Extensions
Syntax
public static TService GetServiceForType<TService, TType>(this IServiceProvider serviceProvider)
Attributes
| Type | Description |
|---|---|
| Nullable |
Type Parameters
| Name | Description |
|---|---|
| TService | |
| TType |
Parameters
| Name | Type | Description |
|---|---|---|
| serviceProvider | IServiceProvider |
Return Value
| Type | Description |
|---|---|
| TService |