예제 #1
0
 public static void ConfigureContext(string appDataFolder)
 {
     FileSystemContext.Configure(appDataFolder);
     FileSystemContext.RepositoriesMapping.Add(typeof(Settings), () => new DefaultRepository <Settings, Settings.Persistent, long>(new DefaultSerializer <List <Settings.Persistent> >($@"{appDataFolder}\Settings\user.dat")));
     Log.Debug("User settings repository added", null);
 }