@@ -65,29 +65,29 @@ public async ValueTask<T> GetItemAsync<T>(string key)
65
65
}
66
66
}
67
67
68
- public async ValueTask < string > GetItemAsStringAsync ( string key )
68
+ public ValueTask < string > GetItemAsStringAsync ( string key )
69
69
{
70
70
if ( string . IsNullOrEmpty ( key ) )
71
71
throw new ArgumentNullException ( nameof ( key ) ) ;
72
72
73
- return await _jSRuntime . InvokeAsync < string > ( "localStorage.getItem" , key ) . ConfigureAwait ( false ) ;
73
+ return _jSRuntime . InvokeAsync < string > ( "localStorage.getItem" , key ) ;
74
74
}
75
75
76
- public async ValueTask RemoveItemAsync ( string key )
76
+ public ValueTask RemoveItemAsync ( string key )
77
77
{
78
78
if ( string . IsNullOrEmpty ( key ) )
79
79
throw new ArgumentNullException ( nameof ( key ) ) ;
80
80
81
- await _jSRuntime . InvokeVoidAsync ( "localStorage.removeItem" , key ) . ConfigureAwait ( false ) ;
81
+ return _jSRuntime . InvokeVoidAsync ( "localStorage.removeItem" , key ) ;
82
82
}
83
83
84
- public async ValueTask ClearAsync ( ) => await _jSRuntime . InvokeVoidAsync ( "localStorage.clear" ) . ConfigureAwait ( false ) ;
84
+ public ValueTask ClearAsync ( ) => _jSRuntime . InvokeVoidAsync ( "localStorage.clear" ) ;
85
85
86
- public async ValueTask < int > LengthAsync ( ) => await _jSRuntime . InvokeAsync < int > ( "eval" , "localStorage.length" ) . ConfigureAwait ( false ) ;
86
+ public ValueTask < int > LengthAsync ( ) => _jSRuntime . InvokeAsync < int > ( "eval" , "localStorage.length" ) ;
87
87
88
- public async ValueTask < string > KeyAsync ( int index ) => await _jSRuntime . InvokeAsync < string > ( "localStorage.key" , index ) . ConfigureAwait ( false ) ;
88
+ public ValueTask < string > KeyAsync ( int index ) => _jSRuntime . InvokeAsync < string > ( "localStorage.key" , index ) ;
89
89
90
- public async ValueTask < bool > ContainKeyAsync ( string key ) => await _jSRuntime . InvokeAsync < bool > ( "localStorage.hasOwnProperty" , key ) . ConfigureAwait ( false ) ;
90
+ public ValueTask < bool > ContainKeyAsync ( string key ) => _jSRuntime . InvokeAsync < bool > ( "localStorage.hasOwnProperty" , key ) ;
91
91
92
92
public void SetItem < T > ( string key , T data )
93
93
{
@@ -138,7 +138,7 @@ public T GetItem<T>(string key)
138
138
return ( T ) ( object ) serialisedData ;
139
139
}
140
140
}
141
-
141
+
142
142
public string GetItemAsString ( string key )
143
143
{
144
144
if ( string . IsNullOrEmpty ( key ) )
0 commit comments