void ReconnectFaultedSubscriberChannel(D2UserPasswordSubscriber subscriber)
 {
     _subscriberCreationTasks.Add(Task.Factory.StartNew(() =>
     {
         subscriber.Initialize();
     }, subscriber.Config.TaskCancellationToken.Token));
 }
 void CreateSubscribers()
 {
     //Creating clients
     _logger.LogTextMessage("Creating subscribers...");
     foreach (var config in _configurations)
     {
         var subscriber = new D2UserPasswordSubscriber(config, _logger);
         _subscriberCreationTasks.Add(Task.Factory.StartNew(() =>
         {
             subscriber.AddPasswordProcessor(CreateLgnFile);
             subscriber.AddReconnectionProcessor(ReconnectFaultedSubscriberChannel);
             subscriber.Initialize();
             if (subscriber.IsAlive)
             {
                 _passwordSubscribers.Add(subscriber);
             }
         }, config.TaskCancellationToken.Token));
     }
     _logger.LogTextMessage("Creating subscribers - OK");
 }