Class ServiceProviderExtensions
- Namespace
- Lime
- Assembly
- Lime.dll
public static class ServiceProviderExtensions
- Inheritance
-
ServiceProviderExtensions
- Inherited Members
Methods
GetService<T>(IServiceProvider)
public static T GetService<T>(this IServiceProvider provider) where T : class
Parameters
provider
IServiceProvider
Returns
- T
Type Parameters
T
RequireService<T>(IServiceProvider)
public static T RequireService<T>(this IServiceProvider provider) where T : class
Parameters
provider
IServiceProvider
Returns
- T
Type Parameters
T
TryGetService<T>(IServiceProvider, out T)
public static bool TryGetService<T>(this IServiceProvider provider, out T service) where T : class
Parameters
provider
IServiceProviderservice
T
Returns
Type Parameters
T