File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
sdk/src/Core/Amazon.Runtime/Credentials/Internal Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 13
13
* permissions and limitations under the License.
14
14
*/
15
15
16
- using System . Threading ;
17
16
using Amazon . Runtime . Identity ;
18
17
using Amazon . Runtime . Internal . Auth ;
19
18
@@ -25,7 +24,7 @@ namespace Amazon.Runtime.Credentials.Internal
25
24
/// </summary>
26
25
public class AwsV4aAuthScheme : IAuthScheme < AWSCredentials >
27
26
{
28
- private static ISigner _signer ;
27
+ private static readonly ISigner _signer = new AWS4aSigner ( ) ;
29
28
30
29
/// <inheritdoc/>
31
30
public string SchemeId => AuthSchemeOption . SigV4A ;
@@ -35,14 +34,6 @@ public IIdentityResolver GetIdentityResolver(IIdentityResolverConfiguration conf
35
34
=> configuration . GetIdentityResolver < AWSCredentials > ( ) ;
36
35
37
36
/// <inheritdoc/>
38
- public ISigner Signer ( )
39
- {
40
- if ( _signer == null )
41
- {
42
- Interlocked . Exchange ( ref _signer , new AWS4aSigner ( ) ) ;
43
- }
44
-
45
- return _signer ;
46
- }
37
+ public ISigner Signer ( ) => _signer ;
47
38
}
48
39
}
You can’t perform that action at this time.
0 commit comments