Skip to content

Commit

Permalink
Split YarpResourceLifecycleHook constructor on multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Kralizek committed Jun 10, 2024
1 parent ce1abc5 commit ffb02cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Aspirant.Hosting.Yarp/YarpResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ public class YarpResource(string name) : WebApplicationResource(name)
internal string? ConfigurationSectionName { get; set; }
}

internal class YarpResourceLifecycleHook(IHostEnvironment hostEnvironment, DistributedApplicationExecutionContext executionContext, ResourceNotificationService resourceNotificationService, ResourceLoggerService resourceLoggerService) : WebApplicationResourceLifecycleHook<YarpResource>(hostEnvironment, executionContext, resourceNotificationService, resourceLoggerService)
internal class YarpResourceLifecycleHook(
IHostEnvironment hostEnvironment,
DistributedApplicationExecutionContext executionContext,
ResourceNotificationService resourceNotificationService,
ResourceLoggerService resourceLoggerService)
: WebApplicationResourceLifecycleHook<YarpResource>(hostEnvironment, executionContext, resourceNotificationService, resourceLoggerService)
{
protected override string ResourceTypeName { get; } = "Yarp";

Expand Down

0 comments on commit ffb02cf

Please sign in to comment.