plugins/PluginLoader.Unity/ExtensionMethods.cs
/// <summary>
/// Registers all required plugin loader dependencies in a <see cref="IServiceCollection"/>
/// </summary>
/// <param name="services">The service collection to add services to.</param>
/// <returns></returns>
Registers all required plugin loader dependencies in a
Registers all required plugin loader dependencies in a
public static IServiceCollection RegisterShardedPluginServices(this IServiceCollection services)
			=> services
				.TryRegisterSingleton<PluginLoader>()
				.TryRegisterSingleton<PluginWatchdog>()
				.AddSingleton<IPluginLoaderService, ShardedPluginLoaderService>();
public static IServiceCollection RegisterShardedPluginServices ( this IServiceCollection services ) => services . TryRegisterSingleton < PluginLoader > ( ) . TryRegisterSingleton < PluginWatchdog > ( ) . AddSingleton < IPluginLoaderService , ShardedPluginLoaderService > ( ) ;
Registers all required plugin loader dependencies in a
Registers all required plugin loader dependencies in a
None
IServiceCollection
this
services
The service collection to add services to.
The service collection to add services to .