Skip to main content

Component Plug-In SDK 2026 R1

Method ConfigureServiceCollection

Last update: 19.06.2026

Namespace: Phoenix.ComponentClient
Assembly: Phoenix.ComponentClient.dll

ConfigureServiceCollection(IServiceCollection)

Sets up the IServiceCollection with a singleton instance of this class that will be cleaned up when the IServiceProvider is Disposed. Note, after using this function you still need to cause the lazy load to happen by calling serviceProvider.GetRequiredService<OnFileDeleteFailureLogger>().

public static void ConfigureServiceCollection(IServiceCollection serviceCollection)

Parameters

serviceCollection IServiceCollection

The service collection to configure

Remarks

In order to not add depenency injection dependencies to Phoenix.DotNetUtils, Phoenix.DotNetUtils.FileDeleter.OnFileDeleteFailure is static. If you have a single application with multiple IServiceProviders in it, all event handlers will be called for all providers for all delete failures.

Connect with Ansys