Commit Graph

2 Commits

Author SHA1 Message Date
Gert Driesen ea1ee2b68c Do not check if key is present before removing item. (#1064)
Use Nullable<T>.GetValueOrDefault() instead of Nullable<T>.Value when it is known to have a value.
2018-11-14 14:32:50 -08:00
Patrick Westerhoff 72210e4078 Add AuthenticationProperties.Parameters (#1008)
Add a `Parameters` bag to the authentication properties that allow
passing arbitrary parameters to an authentication handler. These values
are not intended for serialization of persistence, only for flowing data
between call sites.

Also make existing `Items` collection helpers protected to allow them to
be reused in subclasses, make string-based helpers public as a public
way to work with the collection, and add helper methods to interact with
the `Parameters` dictionary.
2018-03-23 09:13:02 -07:00