File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
- namespace WebRISCV
1
+ using System . Globalization ;
2
+
3
+ namespace WebRISCV
2
4
{
3
5
public class CircularIdGenerator
4
6
{
@@ -13,7 +15,10 @@ public CircularIdGenerator(List<string> inputItems)
13
15
14
16
public string Current
15
17
{
16
- get { return items [ currentIndex ] ; }
18
+ get {
19
+ if ( items . Count == 0 ) return string . Empty ;
20
+ return items [ currentIndex ] ;
21
+ }
17
22
}
18
23
19
24
public string GetNextId ( )
Original file line number Diff line number Diff line change 6
6
builder . RootComponents . Add < App > ( "#app" ) ;
7
7
builder . RootComponents . Add < HeadOutlet > ( "head::after" ) ;
8
8
9
- builder . Services . AddScoped ( sp => new { BaseAddress = new Uri ( builder . HostEnvironment . BaseAddress ) } ) ;
9
+ builder . Services . AddScoped ( sp => new HttpClient { BaseAddress = new Uri ( builder . HostEnvironment . BaseAddress ) } ) ;
10
10
11
11
await builder . Build ( ) . RunAsync ( ) ;
You can’t perform that action at this time.
0 commit comments