Skip to content

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

@bqstony

Description

@bqstony

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();
 });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions