public static DiscoveryOptions UseZooPicker(this DiscoveryOptions options)
 {
     options.RegisterPlugin(new ZooPickerPlugin());
     return(options);
 }
 public static DiscoveryOptions UseZooPicker(this DiscoveryOptions options, Action <ZooPickerOptions> configure)
 {
     options.RegisterPlugin(new ZooPickerPlugin(configure));
     return(options);
 }
 public static DiscoveryOptions UseEureka(this DiscoveryOptions options)
 {
     options.RegisterPlugin(new EurekaPlugin());
     return(options);
 }
 /// <summary>
 /// 配置服务发现使用“静态发现”
 /// </summary>
 /// <param name="options">服务发现选项</param>
 /// <returns>服务发现选项</returns>
 public static DiscoveryOptions UseStaticMapping(this DiscoveryOptions options)
 {
     options.RegisterPlugin(new StaticDiscoveryPlugin());
     return(options);
 }
 public static DiscoveryOptions UseEureka(this DiscoveryOptions options, Action <EurekaOptions> configure)
 {
     options.RegisterPlugin(new EurekaPlugin(configure));
     return(options);
 }