Class IServiceCollectionExtensions
Static class containing extension methods for IServiceCollection objects.
Inheritance
object
IServiceCollectionExtensions
Namespace: Tableau.Migration.Interop
Assembly: Tableau.Migration.dll
Syntax
public static class IServiceCollectionExtensions
Methods
AddPythonLogging(ILoggingBuilder, Func<string, NonGenericLoggerBase>)
Adds a python support, including supporting the python logger
Declaration
public static ILoggingBuilder AddPythonLogging(this ILoggingBuilder builder, Func<string, NonGenericLoggerBase> loggerFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| ILoggingBuilder | builder | The ILoggingBuilder |
| Func<string, NonGenericLoggerBase> | loggerFactory | A factory to use to create new loggers for a given category name. |
Returns
| Type | Description |
|---|---|
| ILoggingBuilder | The original logging builder, for fluent API usage. |
AddPythonSupport(IServiceCollection, Func<string, NonGenericLoggerBase>)
Add python support by adding python logging and configuration via environment variables. This will clear all existing ILoggerProviders. All other logger provider should be added after this call.
Declaration
public static IServiceCollection AddPythonSupport(this IServiceCollection services, Func<string, NonGenericLoggerBase> loggerFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The service collection to register services with. |
| Func<string, NonGenericLoggerBase> | loggerFactory | A factory to use to create new loggers for a given category name. |
Returns
| Type | Description |
|---|---|
| IServiceCollection | The original service collection, for fluent API usage. |