Example #1
0
 public CamundaWorkersBuilder SetLogger(Func <LoggingConfiguration> configuration, string scope)
 {
     LogManager.Configuration = configuration();
     LogScope = !string.IsNullOrWhiteSpace(scope) ? scope : throw CamundaWorkersBuilderException.LogScopeIsNotStated();
     return(this);
 }
Example #2
0
 public CamundaWorkersBuilder SetProperties(Func <IConfiguration> configuration)
 {
     Properties    = PropertiesUtils.Create <TProperties>(configuration()) ?? throw CamundaWorkersBuilderException.PropertiesAreEmpty();
     CamundaClient = new SyrinxCamundaClientService(Properties.SyrinxProperties);
     ServiceCollection.AddScoped(factory => CamundaClient);
     return(this);
 }