Table of Contents

Class IServiceCollectionExtensions

Namespace
Steeltoe.Common
Assembly
Steeltoe.Common.dll
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 IServiceCollection

Collection of configured services

Returns

IApplicationInstanceInfo

Relevant IApplicationInstanceInfo

RegisterDefaultApplicationInstanceInfo(IServiceCollection)

Try to register a default instance of IApplicationInstanceInfo

public static void RegisterDefaultApplicationInstanceInfo(this IServiceCollection serviceCollection)

Parameters

serviceCollection IServiceCollection

Collection of configured services