Skip to content

Commit

Permalink
Fixing error message spelling error. Minor formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocav committed Nov 29, 2017
1 parent bac0a62 commit 58b0073
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/WebJobs.Script/Binding/GeneralScriptBindingProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ public GeneralScriptBindingProvider(
// So we need a final call that lets us get the tooling snapshot of the graph after all extensions are set.
public void CompleteInitialization(IJobHostMetadataProvider metadataProvider)
{
this._metadataProvider = metadataProvider;
_metadataProvider = metadataProvider;
}

public override bool TryCreate(ScriptBindingContext context, out ScriptBinding binding)
{
string name = context.Type;
var attrType = this._metadataProvider.GetAttributeTypeFromName(name);
var attrType = _metadataProvider.GetAttributeTypeFromName(name);
if (attrType == null)
{
binding = null;
Expand All @@ -49,20 +49,20 @@ public override bool TryCreate(ScriptBindingContext context, out ScriptBinding b

try
{
var attr = this._metadataProvider.GetAttribute(attrType, context.Metadata);
binding = new GeneralScriptBinding(this._metadataProvider, attr, context);
var attr = _metadataProvider.GetAttribute(attrType, context.Metadata);
binding = new GeneralScriptBinding(_metadataProvider, attr, context);
}
catch (Exception e)
{
throw new Exception($"Unabled to configure binding '{context.Name}' of type '{name}'. This may indicate invalid function.json properties", e);
throw new Exception($"Unable to configure binding '{context.Name}' of type '{name}'. This may indicate invalid function.json properties", e);
}

return true;
}

public override bool TryResolveAssembly(string assemblyName, out Assembly assembly)
{
return this._metadataProvider.TryResolveAssembly(assemblyName, out assembly);
return _metadataProvider.TryResolveAssembly(assemblyName, out assembly);
}

// Function.json specifies a type via optional DataType and Cardinality properties.
Expand Down Expand Up @@ -131,8 +131,8 @@ public override Type DefaultType
{
if (_defaultType == null)
{
Type requestedType = GetRequestedType(this.Context);
_defaultType = _metadataProvider.GetDefaultType(_attribute, this.Context.Access, requestedType);
Type requestedType = GetRequestedType(Context);
_defaultType = _metadataProvider.GetDefaultType(_attribute, Context.Access, requestedType);
}
return _defaultType;
}
Expand Down

0 comments on commit 58b0073

Please sign in to comment.