We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 061ffc9 commit bec164cCopy full SHA for bec164c
Src/Fido2.Models/Fido2Configuration.cs
@@ -48,12 +48,24 @@ public class Fido2Configuration
48
/// </summary>
49
public HashSet<string> Origins
50
{
51
- get => _origins ?? new HashSet<string>
+ get
52
53
-#pragma warning disable CS0618
54
- Origin
55
-#pragma warning restore CS0618
56
- };
+ if (_origins == null)
+ {
+ _origins = new HashSet<string>();
+
57
+ // Since we're depricating Origin we ease the transition to move the value automatically, unless its null
58
+#pragma warning disable CS0618 // Type or member is obsolete
59
+ if (Origin != null)
60
61
+ _origins.Add(Origin);
62
+ }
63
+#pragma warning restore CS0618 // Type or member is obsolete
64
65
66
+ return _origins;
67
68
69
set
70
71
_origins = value;
0 commit comments