1. 06 3月, 2021 1 次提交
    • E
      Infrastructure Update to improve Testability (#881) · 6277ecfe
      Eugenio Miró 提交于
      * Update Unity to 5.11.7
      
      (cherry picked from commit 1fa54fa1a6c8b35308acd1e7d54690f2b1a4dc12)
      
      * move all Unit tests to the Unit namespace
      
      (cherry picked from commit ea507673ee0d72b24c66a1dd2ed363d5593ba5b6)
      
      * refactor ConfigurationEntry for testability
      
      (cherry picked from commit 4d24d32d59aa17c8380afdd9dd2585f27e5af6d6)
      
      * Migration to MSTest V2
      
      (cherry picked from commit 4e2c696a1f12e7df895b4bf1b2a53ae5e0108163)
      
      * Consolidate Nuget packages
      6277ecfe
  2. 23 7月, 2020 1 次提交
    • R
      Add AD Caching - Fixes #872 (#873) · 498a8b7a
      Rory Fewell 提交于
      * Performance improvements via caching of Principals and PrincipalContexts
      
      This commit brings some performance improvements by implementing some
      basic caching of Principal and PrincipalContext objects instead of
      init'ing them every time. Saves about 2 seconds per init from my usage
      so far.
      
      Expiry right now is hard-coded to 10 minutes, should really shift this
      to a web.config value.
      
      * Performance improvements via caching of PrincipalSearchResults
      
      This commit provides huge performance gains by caching the results of
      calls to GroupPrincipal.GetMembers(true) by enumerating the
      PrincipalSearchResults object and storing it. Normally this class lazy
      loads the results, so the enum is triggered up front and stored for
      later use. On my use case this sped up authorization calls from 10+
      seconds to under a second.
      
      Like the previous commit, the cache is set to expire after 10 minutes -
      I will endeavour to move this out into web.config.
      
      * Add configuration keys for AD cache expiry durations
      
      This commit shifts the hard-coded cache expiry for Active Directory
      objects of 10 minutes into configurable options.
      
      The keys are:
      ActiveDirectoryGroupQueryCacheExpiry
      ActiveDirectoryPrincipalCacheExpiry
      
      They will be parsed into TimeSpan objects by
      ConfigurationHelper.ParseTimeSpanOrDefault (defaulting to 10 minutes).
      
      * Cleanup for PR
      
      This commit addresses some notes in the PR:
      - Locks sections have been fixed up and slightly improved in terms of
        readability
      - Implement IDisposable on cache objects, most important on
        ADCachedSearchResult as it will dispose the enumerated principals
      - Formatting tidy-up, braces
      
      * Amendments for IDisposable implementations on cache objects
      
      Replace Disposing with _Disposing and use nameof when retrieving
      property name as part of throwing ObjectDisposedExceptions.
      
      * Correct dispose exception throw, code to use corefx style
      
      - throw new ObjectDisposedException refers to the class rather than the
        property
      - update private and private static member identifiers to follow corefx
        style conventions
      498a8b7a
  3. 30 9月, 2019 1 次提交
  4. 03 7月, 2019 1 次提交
  5. 20 4月, 2019 1 次提交
  6. 19 4月, 2019 1 次提交
  7. 17 4月, 2019 3 次提交
  8. 13 11月, 2017 6 次提交
  9. 15 9月, 2017 1 次提交
  10. 05 9月, 2017 2 次提交
  11. 29 8月, 2017 5 次提交
  12. 27 8月, 2017 1 次提交
  13. 24 8月, 2017 1 次提交
  14. 14 8月, 2017 3 次提交
  15. 23 7月, 2017 1 次提交
  16. 22 7月, 2017 2 次提交
  17. 12 7月, 2017 3 次提交
  18. 11 7月, 2017 3 次提交
  19. 06 7月, 2017 3 次提交
    • J
      Changes based on PR feedback · dda85310
      Jeff Garoutte 提交于
      Changes based on PR feedback
      dda85310
    • J
      Unit test fix · 7d3d7fcb
      Jeff Garoutte 提交于
      The change to the repository/index behaviour impacted a test.
      I updated the expected url after the logout and changed the repository index to return the home/index url when there are no anonymous repositories to keep the behaviour consistant with the previous flow.
      7d3d7fcb
    • J
      Change the repository index anonymuos user behaviour based on the existance of... · bf557e82
      Jeff Garoutte 提交于
      Change the repository index anonymuos user behaviour based on the existance of an Anonymous enabled repository
      
      When there are no Anonymous Repositories goto jail, I mean the logon screen for Anonymous users.  Otherwise goto the repsitory index.
      bf557e82