private static void InitializeContainer()
 {
     if (ApplicationServiceLocator.Container == null)
     {
         ApplicationServiceLocator.InitializeAsync(new Container(), new DesktopBootstrapper()).Wait();
     }
 }
Esempio n. 2
0
        public static void InitialiseContainer()
        {
            if (ApplicationServiceLocator.IsInitialized)
            {
                return;
            }

            try
            {
                ApplicationServiceLocator.InitializeAsync(new Container(), new DesktopBootstrapper()).Wait();
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
            }
        }