Skip to content
Permalink
Browse files

Removed convo provider IoC injection (because it now changes director…

…y path based on who is logged in).
  • Loading branch information...
GlitchedPolygons committed Aug 2, 2019
1 parent 0eea990 commit 93277fecebf7cbfde03612acb996e03785247ce2
Showing with 0 additions and 2 deletions.
  1. +0 −2 GlitchedEpistle.Client.Windows/App.xaml.cs
@@ -74,7 +74,6 @@ private void App_OnStartup(object sender, StartupEventArgs e)
}

Directory.CreateDirectory(Paths.ROOT_DIRECTORY);
Directory.CreateDirectory(Paths.CONVOS_DIRECTORY);

// Register transient types:
container.RegisterType<JwtService>();
@@ -97,7 +96,6 @@ private void App_OnStartup(object sender, StartupEventArgs e)
container.RegisterType<IViewModelFactory, ViewModelFactory>(new ContainerControlledLifetimeManager());
container.RegisterType<IWindowFactory, WindowFactory>(new ContainerControlledLifetimeManager());
container.RegisterType<IConvoPasswordProvider, ConvoPasswordProvider>(new ContainerControlledLifetimeManager());
container.RegisterInstance<IRepository<Convo, string>>(new ConvoRepositorySQLite($"Data Source={Path.Combine(Paths.CONVOS_DIRECTORY, "_metadata.db")};Version=3;"), new ContainerControlledLifetimeManager());

// Open the main app's window.
var mainView = container.Resolve<MainView>();

0 comments on commit 93277fe

Please sign in to comment.
You can’t perform that action at this time.