Class ScreenServiceCollectionExtensions
- Namespace
- MackySoft.Navigathena.Extensions.DependencyInjection
- Assembly
- MackySoft.Navigathena.Extensions.DependencyInjection.dll
Registers concrete services once and connects their roles without disposable DI aliases.
public static class ScreenServiceCollectionExtensions
- Inheritance
-
ScreenServiceCollectionExtensions
- Inherited Members
Methods
AddScreenLifecycleHandler<T>(IServiceCollection)
public static IServiceCollection AddScreenLifecycleHandler<T>(this IServiceCollection services) where T : class
Parameters
servicesIServiceCollection
Returns
Type Parameters
T
ImportService<T>(IServiceCollection, IServiceProvider)
Imports an existing service without transferring disposal ownership. End the host before disposing its provider.
public static IServiceCollection ImportService<T>(this IServiceCollection services, IServiceProvider provider) where T : class
Parameters
servicesIServiceCollectionproviderIServiceProvider
Returns
Type Parameters
T