Auto stash before merge of "main" and "origin/main"
This commit is contained in:
parent
72544d62e2
commit
5ca874abe9
6 changed files with 81 additions and 14 deletions
|
|
@ -21,17 +21,31 @@ namespace Tests
|
|||
conn.ExecuteSql("SELECT 1 as p");
|
||||
|
||||
}
|
||||
static HttpClient _client = new HttpClient();
|
||||
[TestMethod]
|
||||
public void MyTestMethod()
|
||||
public async Task MyTestMethod()
|
||||
{
|
||||
_client.BaseAddress = new Uri("http://localhost:5341");
|
||||
|
||||
var l = new SeqLogger(_client, "", "");
|
||||
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
|
||||
await l.LogToSeq(
|
||||
"Bruger {UserId} loggede ind",
|
||||
"Debug",
|
||||
new Dictionary<string, object> { { "UserId", "12345" }, { "Counter", i++ } }
|
||||
);
|
||||
}
|
||||
var logger = Container.Resolve<Microsoft.ApplicationInsights.TelemetryClient>();
|
||||
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
logger.TrackTrace("Hello 23");
|
||||
|
||||
logger.TrackTrace("Hello 23" , Microsoft.ApplicationInsights.DataContracts.SeverityLevel.Information);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue