private void Initialize() { var builder = new ContainerBuilder(); builder.RegisterInstance(new NavigationManager()); builder.RegisterType <ApiClient>() .SingleInstance(); builder.RegisterType <UserSession.UserSession>() .SingleInstance(); RegisterViewModels(builder); RegisterManagers(builder); RegisterServices(builder); ServiceLocator.Initialize(builder.Build()); UIThreadHelper.AccessUIThread(InitializeShell); }
public void ShowError(string message) { UIThreadHelper.AccessUIThread(() => MessageBox.Show(message)); }