1- using System ;
1+ using System ;
22using System . Collections . Generic ;
33using System . IO ;
44using System . Text . Json ;
@@ -17,7 +17,7 @@ internal class FunctionsEndpointDataSource : EndpointDataSource
1717 private const string HostJsonFileName = "host.json" ;
1818 private const string DefaultRoutePrefix = "api" ;
1919
20- private readonly IFunctionMetadataProvider _functionMetadataProvider ;
20+ private readonly IFunctionMetadataManager _functionMetadataManager ;
2121 private readonly object _lock = new ( ) ;
2222
2323 private static readonly JsonSerializerOptions _jsonSerializerOptions = new ( )
@@ -30,9 +30,9 @@ internal class FunctionsEndpointDataSource : EndpointDataSource
3030
3131 private List < Endpoint > ? _endpoints ;
3232
33- public FunctionsEndpointDataSource ( IFunctionMetadataProvider functionMetadataProvider )
33+ public FunctionsEndpointDataSource ( IFunctionMetadataManager functionMetadataManager )
3434 {
35- _functionMetadataProvider = functionMetadataProvider ?? throw new ArgumentNullException ( nameof ( functionMetadataProvider ) ) ;
35+ _functionMetadataManager = functionMetadataManager ?? throw new ArgumentNullException ( nameof ( functionMetadataManager ) ) ;
3636 }
3737
3838 public override IReadOnlyList < Endpoint > Endpoints
@@ -58,7 +58,7 @@ private List<Endpoint> BuildEndpoints()
5858 string scriptRoot = Environment . GetEnvironmentVariable ( FunctionsApplicationDirectoryKey ) ??
5959 throw new InvalidOperationException ( "Cannot determine script root directory." ) ;
6060
61- var metadata = _functionMetadataProvider . GetFunctionMetadataAsync ( scriptRoot ) . GetAwaiter ( ) . GetResult ( ) ;
61+ var metadata = _functionMetadataManager . GetFunctionMetadataAsync ( scriptRoot ) . GetAwaiter ( ) . GetResult ( ) ;
6262
6363 string routePrefix = GetRoutePrefixFromHostJson ( scriptRoot ) ?? DefaultRoutePrefix ;
6464
0 commit comments