Skip to main content
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>().

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.