|
|
|
|
@ -71,12 +71,12 @@ public partial class App : Application
|
|
|
|
|
|
|
|
|
|
// 4. SqlSugar + FusionCache
|
|
|
|
|
services.AddSqlSugarSetup();
|
|
|
|
|
services.AddFusionCache()
|
|
|
|
|
.WithSerializer(new FusionCacheNewtonsoftJsonSerializer())
|
|
|
|
|
.WithDistributedCache(new SqliteCache(new SqliteCacheOptions
|
|
|
|
|
{
|
|
|
|
|
CachePath = apolloConfig["cachePath"]!
|
|
|
|
|
}));
|
|
|
|
|
// services.AddFusionCache()
|
|
|
|
|
// .WithSerializer(new FusionCacheNewtonsoftJsonSerializer())
|
|
|
|
|
// .WithDistributedCache(new SqliteCache(new SqliteCacheOptions
|
|
|
|
|
// {
|
|
|
|
|
// CachePath = apolloConfig["cachePath"]!
|
|
|
|
|
// }));
|
|
|
|
|
|
|
|
|
|
// 5. 注册 ViewModel
|
|
|
|
|
services.AddSingleton<ViewModels.NavigationViewModel>();
|
|
|
|
|
|