public UserHost(IBasicApplicationLifetime lifetime, NormalizedPath userHostPath) { Directory.CreateDirectory(userHostPath); ApplicationLifetime = lifetime; CommandRegister = new CommandRegister(); _xTypedObjectfactory = new XTypedFactory(); UserKeyVault = new UserKeyVault(userHostPath); _worldMapping = new SimpleWorldLocalMapping(userHostPath.AppendPart("WorldLocalMapping.txt")); _store = new GitWorldStore(userHostPath, _worldMapping, UserKeyVault.KeyStore, CommandRegister); WorldSelector = new WorldSelector(_store, CommandRegister, _xTypedObjectfactory, UserKeyVault.KeyStore, lifetime); CommandRegister.Register(this); }
public GitWorldStore( NormalizedPath userHostPath, SimpleWorldLocalMapping mapping, SecretKeyStore keyStore, CommandRegister commandRegister) : base(mapping) { _rootPath = userHostPath; SecretKeyStore = keyStore; StacksFilePath = userHostPath.AppendPart("Stacks.xml"); _stackRepos = new List <StackRepo>(); mapping.MappingChanged += Mapping_MappingChanged; commandRegister.Register(this); }