Exemplo n.º 1
0
        public App()
        {
            InitializeComponent();
            //create the container
            var unityContainer = new UnityContainer();

            //Register the dependencies
            unityContainer.RegisterType <IQuotes, QuotesApi>();
            //configure the application to look for our dependencies within this container using service locator
            ServiceLocator.SetLocatorProvider(() => new UnityServiceLocator(unityContainer));
            MainPage = new QuotesPage();
        }
Exemplo n.º 2
0
        public App()
        {
            InitializeComponent();

            MainPage = new QuotesPage();
        }