private static void InitializeContainer() { if (ApplicationServiceLocator.Container == null) { ApplicationServiceLocator.InitializeAsync(new Container(), new DesktopBootstrapper()).Wait(); } }
public static void InitialiseContainer() { if (ApplicationServiceLocator.IsInitialized) { return; } try { ApplicationServiceLocator.InitializeAsync(new Container(), new DesktopBootstrapper()).Wait(); } catch (Exception ex) { Debug.WriteLine(ex.Message); } }