Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugins should be loaded when put into the APP Folder #19

Open
bqstony opened this issue Dec 19, 2023 · 0 comments
Open

Plugins should be loaded when put into the APP Folder #19

bqstony opened this issue Dec 19, 2023 · 0 comments

Comments

@bqstony
Copy link
Member

bqstony commented Dec 19, 2023

Currently the plugins are loaded with the requirement to be referenced in the Program.cs

Reactivate the load of the assemblies to load plugins from the app folder

 .ConfigureServices((hostContext, services) =>
 {
     var plugins = new IPlugin[]
     {
         new NLogLog4TcOutputPlugin(),
         new GraylogLog4TcOutputPlugin(),
         new InfluxDbLog4TcOutputPlugin(),
         new SqlLog4TcOutputPlugin(),
     };

     foreach (var plugin in plugins)
     {
         plugin.ConfigureServices(services, hostContext.Configuration);
     }

     // TODO plugin funktioniert momentan nicht mit dritt-Nugets
     //services
     //    .AddPlugins(GetPluginPath())
     //    // ToDo: Differenziate output / input / ... configuration in PluginBuilder
     //    .AddOutputs(hostContext.Configuration);

     services
         .AddLog4TcAdsLogReceiver()
         .AddLog4TcDispatcher();
 });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant