Class IServiceCollectionExtensions
public static class IServiceCollectionExtensions
- Inheritance
-
IServiceCollectionExtensions
- Inherited Members
Methods
GetApplicationInstanceInfo(IServiceCollection)
If an instance of IApplicationInstanceInfo is found, it is returned. Otherwise a default instance is added to the collection and then returned.
[Obsolete("This method builds a temporary service provider and should not be used")]
public static IApplicationInstanceInfo GetApplicationInstanceInfo(this IServiceCollection serviceCollection)
Parameters
serviceCollection
IServiceCollectionCollection of configured services
Returns
RegisterDefaultApplicationInstanceInfo(IServiceCollection)
Try to register a default instance of IApplicationInstanceInfo
public static void RegisterDefaultApplicationInstanceInfo(this IServiceCollection serviceCollection)
Parameters
serviceCollection
IServiceCollectionCollection of configured services