Skip to content

Commit 4422d24

Browse files
committed
Cleanup.
1 parent 803c37d commit 4422d24

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

samples/netcore3.x/SampleMvcWebApp/Startup.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ public void ConfigureServices(IServiceCollection services)
3232
.AddDefaultUI();
3333

3434
services.AddDynamicAuthorization<ApplicationDbContext>(options => options.DefaultAdminUser = "[email protected]")
35-
.AddJsonStore(options => options.FilePath =
36-
@"D:\Workspace\Github\DynamicRoleBasedAuthorizationNETCore\samples\netcore3.x\SampleMvcWebApp\bin\Debug\netcoreapp3.1\RoleAccess.json");
35+
.AddJsonStore();
3736

3837
services.AddControllersWithViews();
3938
services.AddRazorPages();

src/DynamicAuthorization.Mvc.JsonStore/JsonOptions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@
33
public class JsonOptions
44
{
55
public string FilePath { get; set; } = "RoleAccess.json";
6-
7-
public bool UseMemoryCache { get; set; } = true;
86
}
97
}

0 commit comments

Comments
 (0)