/// <summary>
 /// Uses the zoo keeper service subscribe manager.
 /// </summary>
 /// <param name="builder">The builder.</param>
 /// <param name="configInfo">The configuration information.</param>
 /// <returns>IServiceBuilder.</returns>
 public static IServiceBuilder UseZooKeeperServiceSubscribeManager(this IServiceBuilder builder,
                                                                   ConfigInfo configInfo)
 {
     return(builder.UseSubscribeManager(provider =>
     {
         var result = new ZooKeeperServiceSubscribeManager(
             GetConfigInfo(configInfo),
             provider.GetRequiredService <ISerializer <byte[]> >(),
             provider.GetRequiredService <ISerializer <string> >(),
             provider.GetRequiredService <IServiceSubscriberFactory>(),
             provider.GetRequiredService <ILogger <ZooKeeperServiceSubscribeManager> >(),
             provider.GetRequiredService <IZookeeperClientProvider>());
         return result;
     }));
 }
Esempio n. 2
0
 /// <summary>
 /// Uses the zoo keeper service subscribe manager.
 /// </summary>
 /// <param name="builder">The builder.</param>
 /// <param name="configInfo">The configuration information.</param>
 /// <returns>ZookeeperModule.</returns>
 public ZookeeperModule UseZooKeeperServiceSubscribeManager(ContainerBuilderWrapper builder,
                                                            ConfigInfo configInfo)
 {
     UseSubscribeManager(builder, provider =>
     {
         var result = new ZooKeeperServiceSubscribeManager(
             GetConfigInfo(configInfo),
             provider.GetRequiredService <ISerializer <byte[]> >(),
             provider.GetRequiredService <ISerializer <string> >(),
             provider.GetRequiredService <IServiceSubscriberFactory>(),
             provider.GetRequiredService <ILogger <ZooKeeperServiceSubscribeManager> >(),
             provider.GetRequiredService <IZookeeperClientProvider>());
         return(result);
     });
     return(this);
 }