public static IOcelotBuilder AddServiceFabric(this IOcelotBuilder builder, IConfiguration configuration)
        {
            var services = builder.Services;

            services.Configure <ServiceFabricProviderOptions>(configuration.GetSection(GlobalConfiguration));
            var config = configuration.GetSection(GlobalConfiguration).Get <ServiceFabricProviderOptions>();

            return(builder.AddServiceFabric(o =>
            {
                o.ResolveClientsOnStartup = config.ResolveClientsOnStartup;
                o.UpdateOnClusterChanges = config.ResolveClientsOnStartup;
            }));
        }
 public static IOcelotBuilder AddServiceFabric(this IOcelotBuilder builder) => builder.AddServiceFabric(builder.Configuration);