Skip to content

Commit 9823ec0

Browse files
iamcarbonabergs
authored andcommitted
Use file scoped namespaces
1 parent dd727b1 commit 9823ec0

File tree

87 files changed

+5773
-5856
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+5773
-5856
lines changed

Demo/ConformanceTesting.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
using System.Collections.Generic;
2+
23
using Fido2NetLib;
34

4-
namespace Fido2Demo
5+
namespace Fido2Demo;
6+
7+
public static class ConformanceTesting
58
{
6-
public static class ConformanceTesting
7-
{
8-
private static readonly object _syncRoot = new ();
9+
private static readonly object _syncRoot = new ();
910

10-
private static IMetadataService _instance;
11+
private static IMetadataService _instance;
1112

12-
public static IMetadataService MetadataServiceInstance(string cacheDir, string origin)
13+
public static IMetadataService MetadataServiceInstance(string cacheDir, string origin)
14+
{
15+
if (_instance == null)
1316
{
14-
if (_instance == null)
17+
lock (_syncRoot)
1518
{
16-
lock (_syncRoot)
19+
if (_instance == null)
1720
{
18-
if (_instance == null)
21+
var repos = new List<IMetadataRepository>
1922
{
20-
var repos = new List<IMetadataRepository>
21-
{
22-
new ConformanceMetadataRepository(null, origin),
23-
new FileSystemMetadataRepository(cacheDir)
24-
};
25-
var simpleService = new ConformanceMetadataService(repos);
26-
simpleService.InitializeAsync().Wait();
27-
_instance = simpleService;
28-
}
23+
new ConformanceMetadataRepository(null, origin),
24+
new FileSystemMetadataRepository(cacheDir)
25+
};
26+
var simpleService = new ConformanceMetadataService(repos);
27+
simpleService.InitializeAsync().Wait();
28+
_instance = simpleService;
2929
}
3030
}
31-
return _instance;
3231
}
32+
return _instance;
3333
}
3434
}

0 commit comments

Comments
 (0)