Skip to content

Commit 58b0073

Browse files
committed
Fixing error message spelling error. Minor formatting fixes
1 parent bac0a62 commit 58b0073

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/WebJobs.Script/Binding/GeneralScriptBindingProvider.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ public GeneralScriptBindingProvider(
3434
// So we need a final call that lets us get the tooling snapshot of the graph after all extensions are set.
3535
public void CompleteInitialization(IJobHostMetadataProvider metadataProvider)
3636
{
37-
this._metadataProvider = metadataProvider;
37+
_metadataProvider = metadataProvider;
3838
}
3939

4040
public override bool TryCreate(ScriptBindingContext context, out ScriptBinding binding)
4141
{
4242
string name = context.Type;
43-
var attrType = this._metadataProvider.GetAttributeTypeFromName(name);
43+
var attrType = _metadataProvider.GetAttributeTypeFromName(name);
4444
if (attrType == null)
4545
{
4646
binding = null;
@@ -49,20 +49,20 @@ public override bool TryCreate(ScriptBindingContext context, out ScriptBinding b
4949

5050
try
5151
{
52-
var attr = this._metadataProvider.GetAttribute(attrType, context.Metadata);
53-
binding = new GeneralScriptBinding(this._metadataProvider, attr, context);
52+
var attr = _metadataProvider.GetAttribute(attrType, context.Metadata);
53+
binding = new GeneralScriptBinding(_metadataProvider, attr, context);
5454
}
5555
catch (Exception e)
5656
{
57-
throw new Exception($"Unabled to configure binding '{context.Name}' of type '{name}'. This may indicate invalid function.json properties", e);
57+
throw new Exception($"Unable to configure binding '{context.Name}' of type '{name}'. This may indicate invalid function.json properties", e);
5858
}
5959

6060
return true;
6161
}
6262

6363
public override bool TryResolveAssembly(string assemblyName, out Assembly assembly)
6464
{
65-
return this._metadataProvider.TryResolveAssembly(assemblyName, out assembly);
65+
return _metadataProvider.TryResolveAssembly(assemblyName, out assembly);
6666
}
6767

6868
// Function.json specifies a type via optional DataType and Cardinality properties.
@@ -131,8 +131,8 @@ public override Type DefaultType
131131
{
132132
if (_defaultType == null)
133133
{
134-
Type requestedType = GetRequestedType(this.Context);
135-
_defaultType = _metadataProvider.GetDefaultType(_attribute, this.Context.Access, requestedType);
134+
Type requestedType = GetRequestedType(Context);
135+
_defaultType = _metadataProvider.GetDefaultType(_attribute, Context.Access, requestedType);
136136
}
137137
return _defaultType;
138138
}

0 commit comments

Comments
 (0)