Skip to content

Commit f6c17ce

Browse files
Sergey KanzhelevSergey Kanzhelev
authored andcommitted
more comments
1 parent be07d61 commit f6c17ce

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

SimpleConsoleApp/Program.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ static void Main(string[] args)
2424
return;
2525
}
2626

27+
Execute();
28+
29+
Console.WriteLine("Application started with the Runtime Instrumentation Agent enabled. Press any key to continue...");
30+
Console.ReadKey();
31+
2732
TelemetryConfiguration.Active.InstrumentationKey = "test";
2833

2934
Console.WriteLine("Agent version: " + Decorator.GetAgentVersion());
@@ -32,7 +37,7 @@ static void Main(string[] args)
3237
Functions.Decorate("System", "System.dll", "System.Net.Mail.SmtpClient.Send", OnBegin, OnEnd, OnException, false);
3338

3439
// this wait is required in case you've already called "SmtpClient.Send" method before. Just give some time to requiest re-JIT
35-
Thread.Sleep(1000);
40+
Thread.Sleep(5000);
3641

3742
Execute();
3843

SimpleConsoleApp/Startup.cmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ SET COR_ENABLE_PROFILING=1
22
SET COR_PROFILER={324F817A-7420-4E6D-B3C1-143FBED6D855}
33
SET "COR_PROFILER_PATH_64=%~dp0\RTIA\x64\MicrosoftInstrumentationEngine_x64.dll"
44
SET "COR_PROFILER_PATH_32=%~dp0\RTIA\x86\MicrosoftInstrumentationEngine_x86.dll"
5+
6+
SET MicrosoftInstrumentationEngine_Host={CA487940-57D2-10BF-11B2-A3AD5A13CBC0}
57
SET "MicrosoftInstrumentationEngine_HostPath_64=%~dp0\RTIA\x64\Microsoft.ApplicationInsights.ExtensionsHost_x64.dll"
68
SET "MicrosoftInstrumentationEngine_HostPath_32=%~dp0\RTIA\x86\Microsoft.ApplicationInsights.ExtensionsHost_x86.dll"
7-
SET MicrosoftInstrumentationEngine_Host={CA487940-57D2-10BF-11B2-A3AD5A13CBC0}
9+
810
REM SET MicrosoftInstrumentationEngine_MessageboxAtAttach=1
9-
SET MicrosoftInstrumentationEngine_FileLog="Errors|Dumps"
11+
REM SET MicrosoftInstrumentationEngine_FileLog="Errors|Dumps"
1012

1113
"%~dp0\bin\Debug\SimpleConsoleApp.exe

0 commit comments

Comments
 (0)