Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }