Skip to content

Commit 7315a58

Browse files
committed
Added Register DistributedFileStoreCache
1 parent a755a1f commit 7315a58

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ReleaseNotes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Release Notes
22

3+
This document isn't updated anymore because the [Roadmap discussions](https://github.com/JonPSmith/AuthPermissions.AspNetCore/discussions/2) page lists all the changes.
4+
35
## 4.1.0
46

57
- Adds a service which can handle multiple languages (known in .NET a localization)

UpdateToVersion6.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Of course this creates more breaking changes, but the code will be easier to und
1515
2. Updating the IGetSetShardingEntries method names
1616
3. Make sure that distributed FileStore Cache is registered
1717
4. Move your AuthP 5 sharding entries to the AuthP 6 FileStore Cache
18+
5. Register the FileStore Cache (if not already there)
1819

1920
The subsections below the items listed in the table of content.
2021

@@ -77,7 +78,7 @@ This console app needs three parameters:
7778

7879
Here is an example of running this on a Window's command prompt.
7980

80-
```
81+
```text
8182
C:> dotnet run ...Example6.MvcWebApp.Sharding shardingsettings.Development.json FileStoreCacheFile.Production.json
8283
Added the sharding entry with the name of 'Default Database' added to the FileStore
8384
Added the sharding entry with the name of 'DatabaseWest1' added to the FileStore
@@ -88,4 +89,10 @@ C:>
8889

8990
This console app will store the sharding entries in the FileStore Cache using a format which makes it easier to to read (but is slightly slower). But when your application adds / changes an sharding entry it will use your applications's setup of the DistributedFileStoreCache will take over and the default settings means it stored more compactly, which is faster.
9091

92+
## 5. Register the FileStore Cache (if not already there)
93+
94+
The default implementation of the `IGetSetShardingEntries service uses the [Net.DistributedFileStoreCache](https://github.com/JonPSmith/Net.DistributedFileStoreCache). Therefore you need to make sure that you have registered the DistributedFileStoreCache during startup - see the [Register the DistributedFileStoreCache](https://github.com/JonPSmith/AuthPermissions.AspNetCore/wiki/Configuring-sharding#2-register-the-distributedfilestorecache) document.
95+
96+
_NOTE: You might already registered for another use, like ["down for maintenance"](https://www.thereformedprogrammer.net/how-to-take-an-asp-net-core-web-site-down-for-maintenance/) feature._
97+
9198
END

0 commit comments

Comments
 (0)