Skip to content

Commit 12937ae

Browse files
committed
Some cleanup in SimpleInstanceService injector
1 parent 04ec454 commit 12937ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/BlazorWorker.WorkerCore/SimpleInstanceService/SimpleInstanceService.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,14 @@ private static InitInstanceResult InitInstance(long callId, string typeName, str
201201
}
202202

203203
// Create instances for each constructor argument matching a supported service.
204-
var serviceInstances = constructorInfo.GetParameters().Select(parameter => services.GetFactory(parameter.ParameterType).Invoke()).ToArray();
204+
var serviceInstances = constructorInfo
205+
.GetParameters()
206+
.Select(parameter => services.GetFactory(parameter.ParameterType).Invoke())
207+
.ToArray();
205208

206209
var instance = constructorInfo.Invoke(serviceInstances);
207210

208-
return new InitInstanceResult()
211+
return new InitInstanceResult
209212
{
210213
CallId = callId,
211214
Instance = instance,

0 commit comments

Comments
 (0)