Exemplo n.º 1
0
        protected override void Configure()
        {
            container = new SimpleInjectionContainer();

            RegisterServices();

            container
            .Singleton <IEventAggregator, EventAggregator>()
            .Singleton <Application>();
        }
Exemplo n.º 2
0
        protected override void Configure()
        {
            winContainer = new WinRTContainer();
            container    = new SimpleInjectionContainer(winContainer);
            winContainer.RegisterWinRTServices();

            container.
            Singleton <Application>();

            RegisterServices().ContinueWith(result =>
            {
                Coroutine.Completed += (s, e) =>
                {
                    if (e.Error == null)
                    {
                        return;
                    }

                    Debug.Write(e.Error.Message);
                };
            });
        }