public CustomChallengePersistenceStrategy(
     PersistChallengesDelegate persistAsync,
     RetrieveChallengesDelegate retrieveAsync,
     DeleteChallengesDelegate deleteAsync)
 {
     this._persistAsync  = persistAsync;
     this._deleteAsync   = deleteAsync;
     this._retrieveAsync = retrieveAsync;
 }
Beispiel #2
0
 public CustomChallengePersistenceStrategy(
     IEnumerable <ChallengeType> supportedChallengeTypes,
     PersistChallengesDelegate persistAsync,
     RetrieveChallengesDelegate retrieveAsync,
     DeleteChallengesDelegate deleteAsync)
 {
     this._supportedChallengeTypes = supportedChallengeTypes;
     this._persistAsync            = persistAsync;
     this._deleteAsync             = deleteAsync;
     this._retrieveAsync           = retrieveAsync;
 }
Beispiel #3
0
 public static void AddFluffySpoonLetsEncryptChallengePersistence(
     this IServiceCollection services,
     PersistChallengesDelegate persistAsync,
     RetrieveChallengesDelegate retrieveAsync,
     DeleteChallengesDelegate deleteAsync)
 {
     AddFluffySpoonLetsEncryptChallengePersistence(services,
                                                   new CustomChallengePersistenceStrategy(
                                                       persistAsync,
                                                       retrieveAsync,
                                                       deleteAsync));
 }