public AppLaunchedEventSubscriber(IAppLifecycleManager appConnectedEventProvider, IRegistryProvider registryProvider, IAppLaunchedEventConsumer appLaunchedEventConsumer, Lazy <IClient> client)
 {
     _registryProvider         = registryProvider;
     _appLaunchedEventConsumer = appLaunchedEventConsumer;
     _client = client;
     appConnectedEventProvider.ConnectionEventsStream
     .Where(ev => ev.Type == ConnectionEventType.AppConnected)
     .Select(ev => ev.Connection)
     .Subscribe(OnAppConnected);
 }
 public AppLaunchedEventSubscriber(
     IAppLifecycleManager appConnectedEventProvider,
     IRegistryProvider registryProvider,
     IAppLaunchedEventConsumer appLaunchedEventConsumer,
     IAppLifecycleManagerClientClientRepository lifecycleManagerClientRepo)
 {
     _registryProvider           = registryProvider;
     _appLaunchedEventConsumer   = appLaunchedEventConsumer;
     _lifecycleManagerClientRepo = lifecycleManagerClientRepo;
     appConnectedEventProvider.ConnectionEventsStream
     .Where(ev => ev.Type == ConnectionEventType.AppConnected)
     .Select(ev => ev.Connection)
     .Subscribe(OnAppConnected);
 }