Skip to content

Commit 11c0934

Browse files
committed
cleanup unused event hub config
1 parent d6b17e9 commit 11c0934

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/WebJobs.Script/Binding/ServiceBusScriptBindingProvider.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public override bool TryCreate(ScriptBindingContext context, out ScriptBinding b
3535
if (string.Compare(context.Type, "eventHubTrigger", StringComparison.OrdinalIgnoreCase) == 0 ||
3636
string.Compare(context.Type, "eventHub", StringComparison.OrdinalIgnoreCase) == 0)
3737
{
38-
binding = new EventHubScriptBinding(Config, _eventHubConfiguration, context);
38+
binding = new EventHubScriptBinding(Config, context);
3939
}
4040

4141
return binding != null;
@@ -103,12 +103,10 @@ public override bool TryResolveAssembly(string assemblyName, out Assembly assemb
103103

104104
private class EventHubScriptBinding : ScriptBinding
105105
{
106-
private readonly EventHubConfiguration _eventHubConfiguration;
107106
private readonly INameResolver _nameResolver;
108107

109-
public EventHubScriptBinding(JobHostConfiguration hostConfig, EventHubConfiguration eventHubConfig, ScriptBindingContext context) : base(context)
108+
public EventHubScriptBinding(JobHostConfiguration hostConfig, ScriptBindingContext context) : base(context)
110109
{
111-
_eventHubConfiguration = eventHubConfig;
112110
_nameResolver = hostConfig.NameResolver;
113111
}
114112

0 commit comments

Comments
 (0)