Пример #1
0
 public SomeClient(string optionA, SomeOptions options)
 {
     this.OptionA = optionA;
     this.options = options;
 }
Пример #2
0
        public static ISomeClientBuilder SetSomeClientOptions(this ISomeClientBuilder builder, SomeOptions options)
        {
            if (builder == null)
            {
                throw new ArgumentException(nameof(builder));
            }

            builder.Services.Configure <SomeClientOptions>(o => o.SomeOptions = options);
            return(builder);
        }