Closed sinapy closed 1 year ago
Hi
You can implement an own ICacheProvider
https://github.com/nager/Nager.PublicSuffix/blob/8ad4fe4240624398543b78b35c6c0fef1e5f3903/src/Nager.PublicSuffix/WebTldRuleProvider.cs#LL26C105-L26C105
Thanks @tinohager , I think this does solve the issue.
When using the package, we got this error:
This happened because we don't allow our application to have write access to filesystems.
From what I investigated, it seems like the cache object is always being created when TldWeb object is passed to the constructor of DomainParser.
Is there any other way to use the DomainParser without creating a file for cache or not use cache at all?
Currently we are using this:
Our goal is to get "youtube" from "www.youtube.com/somevalue", or "wikipedia" from "www.wikipedia.org/somevalue", for the urls in our objects.