コード例 #1
0
 public SessionAntiHijackHashStripper(ISessionDetector sessionDetector, ISecureSessionCookieReader secureSessionCookieReader)
 {
     if (sessionDetector == null) throw new ArgumentNullException(nameof(sessionDetector));
       if (secureSessionCookieReader == null) throw new ArgumentNullException(nameof(secureSessionCookieReader));
       _sessionDetector = sessionDetector;
       _secureSessionCookieReader = secureSessionCookieReader;
 }
コード例 #2
0
   public SessionHijackDetector(
 ISessionDetector sessionDetector,
 ISecureSessionCookieReader cookieReader,
 ISessionAntiHijackHashGenerator hashGenerator)
   {
       if (sessionDetector == null) throw new ArgumentNullException(nameof(sessionDetector));
         if (cookieReader == null) throw new ArgumentNullException(nameof(cookieReader));
         if (hashGenerator == null) throw new ArgumentNullException(nameof(hashGenerator));
         _sessionDetector = sessionDetector;
         _cookieReader = cookieReader;
         _hashGenerator = hashGenerator;
   }