File tree Expand file tree Collapse file tree 1 file changed +5
-24
lines changed Expand file tree Collapse file tree 1 file changed +5
-24
lines changed Original file line number Diff line number Diff line change @@ -22,38 +22,22 @@ internal sealed class NotifoOptions : INotifoOptions
22
22
. WaitAndRetryAsync ( retryCount : 3 , sleepDurationProvider : attempt => TimeSpan . FromMilliseconds ( 300 ) ) ;
23
23
24
24
private readonly ICredentialsStore store ;
25
- private string ? apiUrl = "https://cloud.squidex.io" ;
26
- private string ? apiKey ;
27
25
28
26
public bool IsConfigured
29
27
{
30
- get => ! string . IsNullOrEmpty ( apiKey ) && ! string . IsNullOrEmpty ( apiUrl ) ;
28
+ get => ! string . IsNullOrEmpty ( ApiKey ) && ! string . IsNullOrEmpty ( ApiUrl ) ;
31
29
}
32
30
33
31
public string ? ApiUrl
34
32
{
35
- get => apiUrl ;
36
- set
37
- {
38
- if ( apiUrl != value )
39
- {
40
- apiUrl = value ;
41
- store . ApiUrl = value ;
42
- }
43
- }
33
+ get => store . ApiUrl ?? "https://cloud.squidex.io" ;
34
+ set => store . ApiUrl = value ;
44
35
}
45
36
46
37
public string ? ApiKey
47
38
{
48
- get => apiKey ;
49
- set
50
- {
51
- if ( apiKey != value )
52
- {
53
- apiKey = value ;
54
- store . ApiKey = value ;
55
- }
56
- }
39
+ get => store . ApiKey ;
40
+ set => store . ApiKey = value ;
57
41
}
58
42
59
43
public string ? ClientId => default ;
@@ -65,9 +49,6 @@ public string? ApiKey
65
49
public NotifoOptions ( ICredentialsStore store )
66
50
{
67
51
this . store = store ;
68
-
69
- apiUrl = store . ApiUrl ;
70
- apiKey = store . ApiKey ;
71
52
}
72
53
73
54
public void Validate ( )
You can’t perform that action at this time.
0 commit comments