190
1
#nullable enable
2
using System;
3
using System.Threading.Tasks;
4
using System.Threading;
5
using System.Collections.Generic;
6
using System.Diagnostics;
7
8
9
public class Program
10
{
11
public static async Task Main()
12
{
13
int threadCount = 30;
14
15
var svc = new Services.Service();
16
17
var tasks = new Task[threadCount];
18
19
var stopwatch = Stopwatch.StartNew();
20
21
for (int i = 0; i < threadCount; i++)
22
{
23
tasks[i] = Task.Run(() =>
24
{
Cached Result
Unhandled exception. System.UriFormatException: Invalid URI: The format of the URI could not be determined.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
at System.Uri..ctor(String uriString)
at Program.Main()
Command terminated by signal 6
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
at System.Uri..ctor(String uriString)
at Program.Main()
Command terminated by signal 6