CookieAuthOptions.ApplyTo method (1 of 2)
Helper to copy values from this CookieAuthOptions instance to a target CookieAuthenticationOptions instance.
public void ApplyTo(CookieAuthenticationOptions target)
| parameter | description |
|---|---|
| target | The target CookieAuthenticationOptions instance to copy values to. |
See Also
- class CookieAuthOptions
- namespace Kestrun.Authentication
CookieAuthOptions.ApplyTo method (2 of 2)
Helper to copy values from a user-supplied CookieAuthenticationOptions instance to the instance created by the framework inside AddCookie(). Reassigning the local variable (opts = source) would not work because only the local reference changes – the framework keeps the original instance.
public void ApplyTo(CookieAuthOptions target)
| parameter | description |
|---|---|
| target | The target options to copy to. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when source or target is null. |
Remarks
Only copies primitive properties and references. Does not clone complex objects like CookieBuilder.
See Also
- class CookieAuthOptions
- namespace Kestrun.Authentication