Skip to content

Commit e327dfd

Browse files
committed
Minor code cleanup
1 parent eeaf761 commit e327dfd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/WebJobs.Script/Host/ScriptHost.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,11 +621,11 @@ private void VerifyPrecompileStatus(IEnumerable<FunctionDescriptor> functions)
621621

622622
// Get the set of types that should be directly loaded. These have the "configurationSource" : "attributes" set.
623623
// They will be indexed and invoked directly by the WebJobs SDK and skip the IL generator and invoker paths.
624-
private static IEnumerable<Type> GetDirectTypes(IEnumerable<FunctionMetadata> functionMetadatas)
624+
private static IEnumerable<Type> GetDirectTypes(IEnumerable<FunctionMetadata> functionMetadataList)
625625
{
626626
HashSet<Type> visitedTypes = new HashSet<Type>();
627627

628-
foreach (var metadata in functionMetadatas)
628+
foreach (var metadata in functionMetadataList)
629629
{
630630
if (!metadata.IsDirect)
631631
{
@@ -735,7 +735,7 @@ private void LoadExtensions(Assembly assembly, string locationHint)
735735

736736
private bool IsExtensionLoaded(Type type)
737737
{
738-
var registry = this.ScriptConfig.HostConfig.GetService<IExtensionRegistry>();
738+
var registry = ScriptConfig.HostConfig.GetService<IExtensionRegistry>();
739739
var extensions = registry.GetExtensions<IExtensionConfigProvider>();
740740
foreach (var extension in extensions)
741741
{

src/WebJobs.Script/Host/UserTypeScanner.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ private static void ScanParameter(Dictionary<Assembly, string> possibleExtension
4747
Assembly assembly = attr.GetType().Assembly;
4848

4949
var method = parameter.Member;
50-
string hintPath = $"referenced by: Method='{method.DeclaringType.FullName}.{method.Name}', Parameter='{parameter.Name}'.";
50+
string locationHint = $"referenced by: Method='{method.DeclaringType.FullName}.{method.Name}', Parameter='{parameter.Name}'.";
5151

52-
possibleExtensionAssemblies[assembly] = hintPath;
52+
possibleExtensionAssemblies[assembly] = locationHint;
5353
}
5454
}
5555
}

0 commit comments

Comments
 (0)