Class IServiceProviderExtensions
Inheritance
System.Object
IServiceProviderExtensions
Namespace: Steeltoe.Common
Assembly: Steeltoe.Common.dll
Syntax
public static class IServiceProviderExtensions : object
Methods
| Edit this page View SourceGetApplicationInstanceInfo(IServiceProvider)
If an instance of IApplicationInstanceInfo is found, it is returned. Otherwise a default instance is returned.
Declaration
public static IApplicationInstanceInfo GetApplicationInstanceInfo(this IServiceProvider sp)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | sp | Provider of services |
Returns
Type | Description |
---|---|
IApplicationInstanceInfo | An instance of IApplicationInstanceInfo |