Class IServiceCollectionExtensions
Inheritance
System.Object
IServiceCollectionExtensions
Namespace: Steeltoe.Common
Assembly: Steeltoe.Common.dll
Syntax
public static class IServiceCollectionExtensions : object
Methods
| Edit this page View SourceGetApplicationInstanceInfo(IServiceCollection)
If an instance of IApplicationInstanceInfo is found, it is returned. Otherwise a default instance is added to the collection and then returned.
Declaration
public static IApplicationInstanceInfo GetApplicationInstanceInfo(this IServiceCollection serviceCollection)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | serviceCollection | Collection of configured services |
Returns
Type | Description |
---|---|
IApplicationInstanceInfo | Relevant IApplicationInstanceInfo |
RegisterDefaultApplicationInstanceInfo(IServiceCollection)
Try to register a default instance of IApplicationInstanceInfo
Declaration
public static void RegisterDefaultApplicationInstanceInfo(this IServiceCollection serviceCollection)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | serviceCollection | Collection of configured services |