@@ -32,9 +32,9 @@ internal class RequestProcessor
32
32
33
33
// Holds the exception if an issue is encountered while processing the function app dependencies.
34
34
private Exception _initTerminatingError ;
35
-
36
- // Indicate whether the dependencies have been installed
37
- private bool _areDependenciesInstalled ;
35
+
36
+ // Indicate whether the FunctionApp has been initialized.
37
+ private bool _isFunctionAppInitialized ;
38
38
39
39
private Dictionary < StreamingMessage . ContentOneofCase , Func < StreamingMessage , StreamingMessage > > _requestHandlers =
40
40
new Dictionary < StreamingMessage . ContentOneofCase , Func < StreamingMessage , StreamingMessage > > ( ) ;
@@ -182,7 +182,6 @@ internal StreamingMessage ProcessFunctionLoadRequest(StreamingMessage request)
182
182
stopwatch . Start ( ) ;
183
183
184
184
FunctionLoadRequest functionLoadRequest = request . FunctionLoadRequest ;
185
- string lrs = System . Text . Json . JsonSerializer . Serialize < FunctionLoadRequest > ( functionLoadRequest ) ;
186
185
187
186
StreamingMessage response = NewStreamingMessageTemplate (
188
187
request . RequestId ,
@@ -215,14 +214,14 @@ internal StreamingMessage ProcessFunctionLoadRequest(StreamingMessage request)
215
214
// 'FunctionLoadRequest' comes in. Therefore, we run initialization here.
216
215
// Also, we receive a FunctionLoadRequest when a proxy is configured. Proxies don't have the Metadata.Directory set
217
216
// which would cause initialization issues with the PSModulePath. Since they don't have that set, we skip over them.
218
- if ( ! _areDependenciesInstalled && ! functionLoadRequest . Metadata . IsProxy )
217
+ if ( ! _isFunctionAppInitialized && ! functionLoadRequest . Metadata . IsProxy )
219
218
{
220
219
try
221
220
{
222
221
var rpcLogger = new RpcLogger ( _msgStream ) ;
223
222
rpcLogger . SetContext ( request . RequestId , null ) ;
224
223
225
- _areDependenciesInstalled = true ;
224
+ _isFunctionAppInitialized = true ;
226
225
227
226
var managedDependenciesPath = _dependencyManager . Initialize ( request , rpcLogger ) ;
228
227
@@ -264,7 +263,6 @@ internal StreamingMessage ProcessInvocationRequest(StreamingMessage request)
264
263
{
265
264
try
266
265
{
267
- string ins = System . Text . Json . JsonSerializer . Serialize < InvocationRequest > ( request . InvocationRequest ) ;
268
266
var stopwatch = new FunctionInvocationPerformanceStopwatch ( ) ;
269
267
stopwatch . OnStart ( ) ;
270
268
0 commit comments