Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b673311

Browse files
committedAug 22, 2023
Fix formatting
1 parent 74000e2 commit b673311

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎src/Ocelot/DependencyInjection/OcelotBuilder.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public OcelotBuilder(IServiceCollection services, IConfiguration configurationRo
173173
.AddApplicationPart(assembly)
174174
.AddControllersAsServices()
175175
.AddAuthorization()
176-
.AddNewtonsoftJson();
176+
.AddNewtonsoftJson();
177177

178178
Services.AddLogging();
179179
Services.AddMiddlewareAnalysis();
@@ -200,16 +200,16 @@ public IOcelotBuilder AddCustomLoadBalancer<T>()
200200
AddCustomLoadBalancer((provider, route, serviceDiscoveryProvider) => new T());
201201
return this;
202202
}
203-
203+
204204
public IOcelotBuilder AddCustomLoadBalancer<T>(Func<T> loadBalancerFactoryFunc)
205205
where T : ILoadBalancer
206206
{
207207
AddCustomLoadBalancer((provider, route, serviceDiscoveryProvider) =>
208208
loadBalancerFactoryFunc());
209209
return this;
210210
}
211-
212-
public IOcelotBuilder AddCustomLoadBalancer<T>(Func<IServiceProvider, T> loadBalancerFactoryFunc)
211+
212+
public IOcelotBuilder AddCustomLoadBalancer<T>(Func<IServiceProvider, T> loadBalancerFactoryFunc)
213213
where T : ILoadBalancer
214214
{
215215
AddCustomLoadBalancer((provider, route, serviceDiscoveryProvider) =>
@@ -230,7 +230,7 @@ public IOcelotBuilder AddCustomLoadBalancer<T>(Func<IServiceProvider, Downstream
230230
{
231231
Services.AddSingleton<ILoadBalancerCreator>(provider =>
232232
new DelegateInvokingLoadBalancerCreator<T>(
233-
(route, serviceDiscoveryProvider) =>
233+
(route, serviceDiscoveryProvider) =>
234234
loadBalancerFactoryFunc(provider, route, serviceDiscoveryProvider)));
235235
return this;
236236
}
@@ -296,8 +296,8 @@ public IOcelotBuilder AddConfigPlaceholders()
296296

297297
Services.Replace(ServiceDescriptor.Describe(
298298
typeof(IPlaceholders),
299-
s => (IPlaceholders) objectFactory(s,
300-
new[] {CreateInstance(s, wrappedDescriptor)}),
299+
s => (IPlaceholders)objectFactory(s,
300+
new[] { CreateInstance(s, wrappedDescriptor) }),
301301
wrappedDescriptor.Lifetime
302302
));
303303

0 commit comments

Comments
 (0)
Please sign in to comment.