public CamundaWorkersBuilder SetLogger(Func <LoggingConfiguration> configuration, string scope) { LogManager.Configuration = configuration(); LogScope = !string.IsNullOrWhiteSpace(scope) ? scope : throw CamundaWorkersBuilderException.LogScopeIsNotStated(); return(this); }
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); }