@@ -57,7 +57,7 @@ protected TestHelper(EnvironmentHelper environmentHelper, ITestOutputHelper outp
57
57
58
58
protected ITestOutputHelper Output { get ; }
59
59
60
- public Process StartDotnetTestSample ( int traceAgentPort , string arguments , string packageVersion , int aspNetCorePort , int ? statsdPort = null , string framework = "" )
60
+ public Process StartDotnetTestSample ( int traceAgentPort , string arguments , string packageVersion , int aspNetCorePort , int ? statsdPort = null , int ? logsCollectorPort = null , string framework = "" )
61
61
{
62
62
// get path to sample app that the profiler will attach to
63
63
string sampleAppPath = EnvironmentHelper . GetTestCommandForSampleApplicationPath ( packageVersion , framework ) ;
@@ -78,13 +78,14 @@ public Process StartDotnetTestSample(int traceAgentPort, string arguments, strin
78
78
$ "{ appPath } { arguments ?? string . Empty } ",
79
79
traceAgentPort : traceAgentPort ,
80
80
statsdPort : statsdPort ,
81
+ logsCollectorPort : logsCollectorPort ,
81
82
aspNetCorePort : aspNetCorePort ,
82
83
processToProfile : exec + ";testhost.exe" ) ;
83
84
}
84
85
85
- public ProcessResult RunDotnetTestSampleAndWaitForExit ( int traceAgentPort , int ? statsdPort = null , string arguments = null , string packageVersion = "" , string framework = "" )
86
+ public ProcessResult RunDotnetTestSampleAndWaitForExit ( int traceAgentPort , int ? statsdPort = null , int ? logsCollectorPort = null , string arguments = null , string packageVersion = "" , string framework = "" )
86
87
{
87
- var process = StartDotnetTestSample ( traceAgentPort , arguments , packageVersion , aspNetCorePort : 5000 , statsdPort : statsdPort , framework : framework ) ;
88
+ var process = StartDotnetTestSample ( traceAgentPort , arguments , packageVersion , aspNetCorePort : 5000 , statsdPort : statsdPort , logsCollectorPort : logsCollectorPort , framework : framework ) ;
88
89
89
90
using var helper = new ProcessHelper ( process ) ;
90
91
@@ -112,7 +113,7 @@ public ProcessResult RunDotnetTestSampleAndWaitForExit(int traceAgentPort, int?
112
113
return new ProcessResult ( process , standardOutput , standardError , exitCode ) ;
113
114
}
114
115
115
- public Process StartSample ( int traceAgentPort , string arguments , string packageVersion , int aspNetCorePort , int ? statsdPort = null , string framework = "" )
116
+ public Process StartSample ( int traceAgentPort , string arguments , string packageVersion , int aspNetCorePort , int ? statsdPort = null , int ? logCollectorPort = null , string framework = "" )
116
117
{
117
118
// get path to sample app that the profiler will attach to
118
119
string sampleAppPath = EnvironmentHelper . GetSampleApplicationPath ( packageVersion , framework ) ;
@@ -131,13 +132,14 @@ public Process StartSample(int traceAgentPort, string arguments, string packageV
131
132
args ,
132
133
traceAgentPort : traceAgentPort ,
133
134
statsdPort : statsdPort ,
135
+ logsCollectorPort : logCollectorPort ,
134
136
aspNetCorePort : aspNetCorePort ,
135
137
processToProfile : executable ) ;
136
138
}
137
139
138
- public ProcessResult RunSampleAndWaitForExit ( int traceAgentPort , int ? statsdPort = null , string arguments = null , string packageVersion = "" , string framework = "" , int aspNetCorePort = 5000 )
140
+ public ProcessResult RunSampleAndWaitForExit ( int traceAgentPort , int ? statsdPort = null , int ? logCollectorPort = null , string arguments = null , string packageVersion = "" , string framework = "" , int aspNetCorePort = 5000 )
139
141
{
140
- var process = StartSample ( traceAgentPort , arguments , packageVersion , aspNetCorePort : aspNetCorePort , statsdPort : statsdPort , framework : framework ) ;
142
+ var process = StartSample ( traceAgentPort , arguments , packageVersion , aspNetCorePort : aspNetCorePort , statsdPort : statsdPort , logCollectorPort : logCollectorPort , framework : framework ) ;
141
143
142
144
using var helper = new ProcessHelper ( process ) ;
143
145
0 commit comments