Skip to content

Commit

Permalink
re-adding DependencyValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
brettsam committed Jun 7, 2019
1 parent 33c296f commit 25c9a76
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Azure.Functions.Cli/Actions/HostActions/StartHostAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
using Microsoft.Azure.WebJobs.Script.WebHost;
using Microsoft.Azure.WebJobs.Script.WebHost.Authentication;
using Microsoft.Azure.WebJobs.Script.WebHost.Controllers;
using Microsoft.Azure.WebJobs.Script.WebHost.DependencyInjection;
using Microsoft.Azure.WebJobs.Script.WebHost.Security;
using Microsoft.Azure.WebJobs.Script.WebHost.Security.Authentication;
using Microsoft.Extensions.Configuration;
Expand Down Expand Up @@ -480,8 +479,6 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
services.AddSingleton<IConfigureBuilder<IConfigurationBuilder>, DisableConsoleConfigurationBuilder>();
services.AddSingleton<IConfigureBuilder<ILoggingBuilder>, LoggingBuilder>();

// Temporarily mute dependency failures in CLI
services.AddSingleton<IDependencyValidator, NullDependencyValidator>();

return services.BuildServiceProvider();
}
Expand All @@ -507,13 +504,6 @@ public void Configure(IApplicationBuilder app)

app.UseWebJobsScriptHost(applicationLifetime);
}

private class NullDependencyValidator : IDependencyValidator
{
public void Validate(IServiceCollection services)
{
}
}
}
}
}

0 comments on commit 25c9a76

Please sign in to comment.