Class DependencyInjectionExtensions
- Namespace
- Bannerlord.ButterLib.Common.Extensions
- Assembly
- Bannerlord.ButterLib.dll
public static class DependencyInjectionExtensions
- Inheritance
-
DependencyInjectionExtensions
- Inherited Members
Methods
AddSerilogLoggerProvider(MBSubModuleBase, string, IEnumerable<Assembly>)
Don't forget to get a new ILogger after adding a new ILoggerProvider
public static IServiceCollection AddSerilogLoggerProvider(this MBSubModuleBase subModule, string filename, IEnumerable<Assembly> filter)
Parameters
subModule
MBSubModuleBasefilename
stringfilter
IEnumerable<Assembly>
Returns
AddSerilogLoggerProvider(MBSubModuleBase, string, IEnumerable<string>?, Action<LoggerConfiguration>?)
Don't forget to get a new ILogger after adding a new ILoggerProvider
public static IServiceCollection AddSerilogLoggerProvider(this MBSubModuleBase subModule, string filename, IEnumerable<string>? filter = null, Action<LoggerConfiguration>? configure = null)
Parameters
subModule
MBSubModuleBasefilename
stringfilter
IEnumerable<string>configure
Action<LoggerConfiguration>
Returns
AddSubSystem<TImplementation>(IServiceCollection)
public static IServiceCollection AddSubSystem<TImplementation>(this IServiceCollection services) where TImplementation : class, ISubSystem, new()
Parameters
services
IServiceCollection
Returns
Type Parameters
TImplementation
FromSources(IEnumerable<string>)
public static Func<LogEvent, bool> FromSources(IEnumerable<string> sources)
Parameters
sources
IEnumerable<string>
Returns
GetServiceProvider(CampaignBehaviorBase)
For Stage 3.
public static IServiceProvider? GetServiceProvider(this CampaignBehaviorBase _)
Parameters
Returns
GetServiceProvider(Game)
For Stage 3.
public static IServiceProvider? GetServiceProvider(this Game _)
Parameters
_
Game
Returns
GetServiceProvider(MBSubModuleBase)
For Stage 3.
public static IServiceProvider? GetServiceProvider(this MBSubModuleBase _)
Parameters
Returns
GetServices(MBSubModuleBase)
For Stage 2.
public static IServiceCollection? GetServices(this MBSubModuleBase _)
Parameters
Returns
GetSubSystem(IServiceProvider, string)
public static ISubSystem? GetSubSystem(this IServiceProvider sp, string id)
Parameters
sp
IServiceProviderid
string
Returns
GetTempServiceProvider(MBSubModuleBase)
For Stage 2.
public static IServiceProvider? GetTempServiceProvider(this MBSubModuleBase _)
Parameters
Returns
This page was last modified at 02/06/2024 11:11:43 +02:00 (UTC).
Commit Message
Author: Vitalii Mikhailov
Commit: afe4722382576c1b56cdc1f621d23c975b59dfa5
Tabulation fix