public static IBioWorldBuilder AddJaeger(this IBioWorldBuilder builder, Func <IJaegerOptionsBuilder, IJaegerOptionsBuilder> buildOptions, string sectionName = SectionName, Action <IOpenTracingBuilder> openTracingBuilder = null) { var options = buildOptions(new JaegerOptionsBuilder()).Build(); return(builder.AddJaeger(options, sectionName, openTracingBuilder)); }
public static IBioWorldBuilder AddJaeger(this IBioWorldBuilder builder, string sectionName = SectionName, Action <IOpenTracingBuilder> openTracingBuilder = null) { if (string.IsNullOrWhiteSpace(sectionName)) { sectionName = SectionName; } var options = builder.GetOptions <JaegerOptions>(sectionName); return(builder.AddJaeger(options, sectionName, openTracingBuilder)); }