Ejemplo n.º 1
0
 public void Dispose(ServicesCollection childContainer)
 {
     DisposeDriverService.DisposeAndroid(childContainer);
     DisposeDriverService.DisposeIOS(childContainer);
     DisposeDriverService.DisposeAndroid(ServicesCollection.Main);
     DisposeDriverService.DisposeIOS(ServicesCollection.Main);
 }
Ejemplo n.º 2
0
        private void ShutdownApp(ServicesCollection container)
        {
            DisposeDriverService.DisposeAndroid(container);
            DisposeDriverService.DisposeIOS(container);

            var currentAppConfiguration = container.Resolve <AppConfiguration>("_currentAppConfiguration");

            container.RegisterInstance(currentAppConfiguration, "_previousAppConfiguration");
        }
Ejemplo n.º 3
0
        public void DisposeAll()
        {
            foreach (var childContainer in ServicesCollection.Current.GetChildServicesCollections())
            {
                DisposeDriverService.DisposeAndroid(childContainer);
                DisposeDriverService.DisposeIOS(childContainer);
            }

            DisposeDriverService.DisposeAndroid(ServicesCollection.Main);
            DisposeDriverService.DisposeIOS(ServicesCollection.Main);
        }