Class ServiceCollectionExtensions
Extension methods for configuring services related to LemonEdge Process Utilities in an IServiceCollection.
Inherited Members
Namespace: LemonEdge.Tools.ProcessUtilities
Assembly: LemonEdge.Tools.ProcessUtilities.dll
Syntax
public static class ServiceCollectionExtensions
Methods
AddLemonEdgeProcessUtilities(IServiceCollection)
Adds LemonEdge Process Utilities to the specified IServiceCollection.
Declaration
public static IServiceCollection AddLemonEdgeProcessUtilities(this IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The IServiceCollection to which the process utilities should be added. |
Returns
| Type | Description |
|---|---|
| IServiceCollection | The modified IServiceCollection. |
CheckRequiredLemonEdgeProcessUtilities(IServiceProvider)
Ensures that the required services related to LemonEdge Process Utilities are registered in the provided serviceProvider.
This method checks for the presence of essential services and throws an exception if any of these services is not registered.
Declaration
public static void CheckRequiredLemonEdgeProcessUtilities(this IServiceProvider serviceProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceProvider | serviceProvider | The service provider to check for required services. |