Exemple #1
0
 public FileSystemClientStoreSettingsTests()
 {
     _sut = new FileSystemClientStoreSettings {
         FilePath = "C:\\ProgramData\\Clients.xml",
         ClientCacheEntryExpiration = TimeSpan.FromMinutes(3)
     };
 }
        public static IHttpMessageSigningVerificationBuilder UseFileSystemClientStore(
            this IHttpMessageSigningVerificationBuilder builder,
            FileSystemClientStoreSettings clientStoreSettings)
        {
            if (builder == null)
            {
                throw new ArgumentNullException(nameof(builder));
            }
            if (clientStoreSettings == null)
            {
                throw new ArgumentNullException(nameof(clientStoreSettings));
            }

            return(builder.UseFileSystemClientStore(prov => clientStoreSettings));
        }