FlubuCore modules

It is possible to change FlubuCore internal logic by replacing FlubuCore modules through DI. For example logging, target runner, task context etc.. could be changed.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
public class BuildScript : DefaultBuildScript
{
  public override void ConfigureServices(IServiceCollection services)
  {
     services.Replace<IFlubuSession, MyFlubuSession>();
  }

  public override void Configure(ILoggerFactory loggerFactory)
  {
      loggerFactory.AddProvider(new MyLoggerProvider());
  }
}