Method
GetRequiredService
func GetRequiredService<T>() -> Result<T, ServiceError>
Declaring type: ServiceProviderExtensions
Module: Neo.DependencyInjection
Assembly: Neo.DependencyInjection.Abstractions.dll
Extension from ServiceProviderExtensions.GetRequiredService
Typed form of GetRequiredService; preserves activation errors and lifetime behavior.
Parameters
| Name | Type | Description |
|---|---|---|
self |
ServiceProvider |
Return value
Result<T, ServiceError>