Skip to content
Permalink
Browse files

Consuming new Http binding package

  • Loading branch information...
mathewc committed Apr 20, 2017
1 parent 0c38f7a commit dcc9e1d50db6655043fb99f750949fe49744a052
Showing with 167 additions and 1,655 deletions.
  1. +0 −1 src/Common/CommonAssemblyInfo.cs
  2. BIN src/WebJobs.Script.Extensibility/GlobalSuppressions.cs
  3. +1 −1 src/WebJobs.Script.Host/App.config
  4. +2 −1 src/WebJobs.Script.Host/GlobalSuppressions.cs
  5. +7 −14 src/WebJobs.Script.Host/WebJobs.Script.Host.csproj
  6. +7 −7 src/WebJobs.Script.Host/packages.config
  7. +8 −7 src/WebJobs.Script.NuGet/WebJobs.Script.nuspec
  8. +1 −1 src/WebJobs.Script.WebHost/Controllers/AdminController.cs
  9. +1 −0 src/WebJobs.Script.WebHost/Controllers/FunctionsController.cs
  10. +1 −1 src/WebJobs.Script.WebHost/Controllers/KeysController.cs
  11. +1 −0 src/WebJobs.Script.WebHost/Filters/AuthorizationLevelAttribute.cs
  12. +1 −0 src/WebJobs.Script.WebHost/Filters/JwtAuthenticationAttribute.cs
  13. +1 −0 src/WebJobs.Script.WebHost/Filters/SystemAuthorizationLevelAttribute.cs
  14. +2 −1 src/WebJobs.Script.WebHost/GlobalSuppressions.cs
  15. +4 −3 src/WebJobs.Script.WebHost/Handlers/ExceptionProcessingHandler.cs
  16. +1 −0 src/WebJobs.Script.WebHost/Swagger/SwaggerDocumentManager.cs
  17. +1 −1 src/WebJobs.Script.WebHost/Web.config
  18. +10 −14 src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj
  19. +5 −7 src/WebJobs.Script.WebHost/WebScriptHostManager.cs
  20. +2 −2 src/WebJobs.Script.WebHost/WebScriptHostRequestManager.cs
  21. +8 −7 src/WebJobs.Script.WebHost/packages.config
  22. +0 −33 src/WebJobs.Script/AuthorizationLevel.cs
  23. +0 −1 src/WebJobs.Script/Binding/ExtensionBinding.cs
  24. +0 −50 src/WebJobs.Script/Binding/Http/HttpConfiguration.cs
  25. +0 −34 src/WebJobs.Script/Binding/Http/HttpJobHostConfigurationExtensions.cs
  26. +0 −139 src/WebJobs.Script/Binding/Http/HttpRequestManager.cs
  27. +0 −86 src/WebJobs.Script/Binding/Http/HttpRouteFactory.cs
  28. +0 −47 src/WebJobs.Script/Binding/Http/HttpTriggerAttribute.cs
  29. +0 −351 src/WebJobs.Script/Binding/Http/HttpTriggerAttributeBindingProvider.cs
  30. +4 −5 src/WebJobs.Script/Binding/WebJobsCoreScriptBindingProvider.cs
  31. +0 −2 src/WebJobs.Script/Config/ScriptHostConfiguration.cs
  32. +0 −2 src/WebJobs.Script/Description/DiagnosticSeverityExtensions.cs
  33. +0 −1 src/WebJobs.Script/Description/DotNet/CSharp/Analyzers/AsyncVoidAnalyzer.cs
  34. +0 −1 src/WebJobs.Script/Description/DotNet/CSharp/Analyzers/InvalidFileMetadataReferenceAnalyzer.cs
  35. +0 −1 src/WebJobs.Script/Description/DotNet/CSharp/CSharpCompilation.cs
  36. +0 −1 src/WebJobs.Script/Description/DotNet/CSharp/CSharpCompilationService.cs
  37. +0 −1 src/WebJobs.Script/Description/DotNet/DotNetCompilationServiceFactory.cs
  38. +0 −1 src/WebJobs.Script/Description/DotNet/DotNetFunctionInvoker.cs
  39. +1 −3 src/WebJobs.Script/Description/DotNet/ExtensionSharedAssemblyProvider.cs
  40. +0 −1 src/WebJobs.Script/Description/DotNet/FunctionAssemblyLoadContext.cs
  41. +0 −1 src/WebJobs.Script/Description/DotNet/FunctionAssemblyLoader.cs
  42. +0 −1 src/WebJobs.Script/Description/DotNet/FunctionMetadataResolver.cs
  43. +0 −1 src/WebJobs.Script/Description/DotNet/FunctionParameter.cs
  44. +1 −3 src/WebJobs.Script/Description/DotNet/FunctionSignature.cs
  45. +0 −1 src/WebJobs.Script/Description/DotNet/ICompilation.cs
  46. +0 −1 src/WebJobs.Script/Description/DotNet/ICompilationService.cs
  47. +0 −1 src/WebJobs.Script/Description/DotNet/ICompilationServiceFactory.cs
  48. +0 −1 src/WebJobs.Script/Description/DotNet/IFunctionMetadataResolver.cs
  49. +0 −4 src/WebJobs.Script/Description/DotNet/Raw/RawAssemblyCompilation.cs
  50. +0 −1 src/WebJobs.Script/Description/DotNet/Raw/RawAssemblyCompilationService.cs
  51. +0 −1 src/WebJobs.Script/Description/FunctionInvocationContext.cs
  52. +0 −1 src/WebJobs.Script/Description/FunctionInvokerBase.cs
  53. +2 −2 src/WebJobs.Script/Description/Node/NodeFunctionInvoker.cs
  54. +0 −1 src/WebJobs.Script/Description/PowerShell/PowerShellFunctionInvoker.cs
  55. +0 −2 src/WebJobs.Script/Description/Script/ScriptFunctionInvoker.cs
  56. +2 −2 src/WebJobs.Script/Description/ScriptFunctionInvokerBase.cs
  57. +1 −1 src/WebJobs.Script/Extensions/HttpRequestMessageExtensions.cs
  58. +2 −1 src/WebJobs.Script/GlobalSuppressions.cs
  59. +0 −1 src/WebJobs.Script/Host/ScriptHost.cs
  60. +0 −3 src/WebJobs.Script/ScriptConstants.cs
  61. +10 −21 src/WebJobs.Script/WebJobs.Script.csproj
  62. +6 −2 src/WebJobs.Script/app.config
  63. +8 −7 src/WebJobs.Script/packages.config
  64. +1 −1 test/WebJobs.Script.Tests.Integration/App.config
  65. +3 −2 test/WebJobs.Script.Tests.Integration/Host/WebScriptHostManagerTests.cs
  66. +2 −1 test/WebJobs.Script.Tests.Integration/PowerShellEndToEndTests.cs
  67. +10 −14 test/WebJobs.Script.Tests.Integration/WebJobs.Script.Tests.Integration.csproj
  68. +8 −7 test/WebJobs.Script.Tests.Integration/packages.config
  69. +0 −236 test/WebJobs.Script.Tests/Binding/HttpRequestManagerTests.cs
  70. +0 −22 test/WebJobs.Script.Tests/Binding/HttpTriggerAttributeBindingProviderTests.cs
  71. +0 −331 test/WebJobs.Script.Tests/Binding/HttpTriggerBindingTests.cs
  72. +1 −0 test/WebJobs.Script.Tests/Controllers/Admin/AdminControllerTests.cs
  73. +1 −0 test/WebJobs.Script.Tests/Controllers/Admin/SwaggerControllerTests.cs
  74. +2 −1 test/WebJobs.Script.Tests/Description/Script/ScriptFunctionInvokerBaseTests.cs
  75. +5 −4 test/WebJobs.Script.Tests/Filters/AuthorizationLevelAttributeTests.cs
  76. +1 −0 test/WebJobs.Script.Tests/Filters/JwtAuthenticationAttributeTests.cs
  77. +1 −0 test/WebJobs.Script.Tests/Filters/SystemLevelAuthorizationAttributeTests.cs
  78. +3 −2 test/WebJobs.Script.Tests/Handlers/ExceptionProcessingHandlerTests.cs
  79. +2 −1 test/WebJobs.Script.Tests/Handlers/SystemTraceHandlerTests.cs
  80. +0 −113 test/WebJobs.Script.Tests/HttpRouteFactoryTests.cs
  81. +4 −3 test/WebJobs.Script.Tests/ScriptHostTests.cs
  82. +10 −18 test/WebJobs.Script.Tests/WebJobs.Script.Tests.csproj
  83. +3 −3 test/WebJobs.Script.Tests/WebScriptHostRequestManagerTests.cs
  84. +1 −1 test/WebJobs.Script.Tests/app.config
  85. +8 −7 test/WebJobs.Script.Tests/packages.config
@@ -10,7 +10,6 @@
[assembly: AssemblyCopyright("© Microsoft Corporation. All rights reserved.")]

[assembly: ComVisible(false)]
[assembly: CLSCompliant(true)]

[assembly: AssemblyVersion("1.0.0.0")]

Binary file not shown.
@@ -88,7 +88,7 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.Compression" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.0.0.0" />
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Security.Cryptography.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
@@ -10,4 +10,5 @@

[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Scope = "member", Target = "WebJobs.Script.Host.Program.#Main(System.String[])")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Scope = "member", Target = "Microsoft.Azure.WebJobs.Script.Host.Program.#Main(System.String[])")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1636:File header copyright text must match", Justification = "<Pending>")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1636:File header copyright text must match", Justification = "<Pending>")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1014:MarkAssembliesWithClsCompliant")]
@@ -90,36 +90,29 @@
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.Azure.WebJobs.Extensions, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.Extensions.2.0.1-alpha1-10427\lib\net45\Microsoft.Azure.WebJobs.Extensions.dll</HintPath>
<Private>True</Private>
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.Extensions.2.0.1-alpha1-10430\lib\net45\Microsoft.Azure.WebJobs.Extensions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.WebJobs.Extensions.ApiHub, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.Extensions.ApiHub.1.0.0-beta3-10427\lib\net45\Microsoft.Azure.WebJobs.Extensions.ApiHub.dll</HintPath>
<Private>True</Private>
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.Extensions.ApiHub.1.0.0-beta3-10430\lib\net45\Microsoft.Azure.WebJobs.Extensions.ApiHub.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.WebJobs.Extensions.BotFramework, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.Extensions.BotFramework.1.0.13-beta\lib\net46\Microsoft.Azure.WebJobs.Extensions.BotFramework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.Azure.WebJobs.Extensions.DocumentDB, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.Extensions.DocumentDB.1.0.1-alpha1-10427\lib\net45\Microsoft.Azure.WebJobs.Extensions.DocumentDB.dll</HintPath>
<Private>True</Private>
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.Extensions.DocumentDB.1.0.1-alpha1-10430\lib\net45\Microsoft.Azure.WebJobs.Extensions.DocumentDB.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.WebJobs.Extensions.MobileApps, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.Extensions.MobileApps.1.0.1-alpha1-10427\lib\net45\Microsoft.Azure.WebJobs.Extensions.MobileApps.dll</HintPath>
<Private>True</Private>
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.Extensions.MobileApps.1.0.1-alpha1-10430\lib\net45\Microsoft.Azure.WebJobs.Extensions.MobileApps.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.WebJobs.Extensions.NotificationHubs, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.Extensions.NotificationHubs.1.0.1-alpha1-10427\lib\net45\Microsoft.Azure.WebJobs.Extensions.NotificationHubs.dll</HintPath>
<Private>True</Private>
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.Extensions.NotificationHubs.1.0.1-alpha1-10430\lib\net45\Microsoft.Azure.WebJobs.Extensions.NotificationHubs.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.WebJobs.Extensions.SendGrid, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.Extensions.SendGrid.2.0.1-alpha1-10427\lib\net45\Microsoft.Azure.WebJobs.Extensions.SendGrid.dll</HintPath>
<Private>True</Private>
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.Extensions.SendGrid.2.0.1-alpha1-10430\lib\net45\Microsoft.Azure.WebJobs.Extensions.SendGrid.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.WebJobs.Extensions.Twilio, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.Extensions.Twilio.1.0.1-alpha1-10427\lib\net45\Microsoft.Azure.WebJobs.Extensions.Twilio.dll</HintPath>
<Private>True</Private>
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.Extensions.Twilio.1.0.1-alpha1-10430\lib\net45\Microsoft.Azure.WebJobs.Extensions.Twilio.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.WebJobs.Host, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\packages\Microsoft.Azure.WebJobs.2.0.1-alpha1-10646\lib\net45\Microsoft.Azure.WebJobs.Host.dll</HintPath>
@@ -12,14 +12,14 @@
<package id="Microsoft.Azure.ServiceBus.EventProcessorHost" version="2.2.10" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs" version="2.0.1-alpha1-10646" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Core" version="2.0.1-alpha1-10646" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Extensions" version="2.0.1-alpha1-10427" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Extensions.ApiHub" version="1.0.0-beta3-10427" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Extensions" version="2.0.1-alpha1-10430" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Extensions.ApiHub" version="1.0.0-beta3-10430" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Extensions.BotFramework" version="1.0.13-beta" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Extensions.DocumentDB" version="1.0.1-alpha1-10427" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Extensions.MobileApps" version="1.0.1-alpha1-10427" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Extensions.NotificationHubs" version="1.0.1-alpha1-10427" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Extensions.SendGrid" version="2.0.1-alpha1-10427" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Extensions.Twilio" version="1.0.1-alpha1-10427" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Extensions.DocumentDB" version="1.0.1-alpha1-10430" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Extensions.MobileApps" version="1.0.1-alpha1-10430" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Extensions.NotificationHubs" version="1.0.1-alpha1-10430" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Extensions.SendGrid" version="2.0.1-alpha1-10430" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Extensions.Twilio" version="1.0.1-alpha1-10430" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.Script.Extensibility" version="1.0.0-beta2-10826" targetFramework="net46" />
<package id="Microsoft.Azure.WebJobs.ServiceBus" version="2.0.1-alpha1-10646" targetFramework="net46" />
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="net46" />
@@ -16,14 +16,15 @@
<dependencies>
<dependency id="Microsoft.Azure.WebJobs" version="2.0.1-alpha1-10646" />
<dependency id="Microsoft.Azure.WebJobs.ServiceBus" version="2.0.1-alpha1-10646" />
<dependency id="Microsoft.Azure.WebJobs.Extensions" version="2.0.1-alpha1-10427" />
<dependency id="Microsoft.Azure.WebJobs.Extensions.SendGrid" version="2.0.1-alpha1-10427" />
<dependency id="Microsoft.Azure.WebJobs.Extensions.Twilio" version="1.0.1-alpha1-10427" />
<dependency id="Microsoft.Azure.WebJobs.Extensions" version="2.0.1-alpha1-10430" />
<dependency id="Microsoft.Azure.WebJobs.Extensions.SendGrid" version="2.0.1-alpha1-10430" />
<dependency id="Microsoft.Azure.WebJobs.Extensions.Twilio" version="1.0.1-alpha1-10430" />
<dependency id="Microsoft.Azure.WebJobs.Extensions.BotFramework" version="1.0.13-beta" />
<dependency id="Microsoft.Azure.WebJobs.Extensions.ApiHub" version="1.0.0-beta3-10427" />
<dependency id="Microsoft.Azure.WebJobs.Extensions.DocumentDB" version="1.0.1-alpha1-10427" />
<dependency id="Microsoft.Azure.WebJobs.Extensions.MobileApps" version="1.0.1-alpha1-10427" />
<dependency id="Microsoft.Azure.WebJobs.Extensions.NotificationHubs" version="1.0.1-alpha1-10427" />
<dependency id="Microsoft.Azure.WebJobs.Extensions.ApiHub" version="1.0.0-beta3-10430" />
<dependency id="Microsoft.Azure.WebJobs.Extensions.DocumentDB" version="1.0.1-alpha1-10430" />
<dependency id="Microsoft.Azure.WebJobs.Extensions.MobileApps" version="1.0.1-alpha1-10430" />
<dependency id="Microsoft.Azure.WebJobs.Extensions.NotificationHubs" version="1.0.1-alpha1-10430" />
<dependency id="Microsoft.Azure.WebJobs.Extensions.Http" version="1.0.0-alpha1-10430" />
<dependency id="Edge.js" version="6.5.1" />
<dependency id="Microsoft.CodeAnalysis.CSharp.Scripting" version="2.0.0" />
<dependency id="Microsoft.AspNet.WebApi.Core" version="5.2.3" />
@@ -12,8 +12,8 @@
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Controllers;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.Azure.WebJobs.Host.Config;
using Microsoft.Azure.WebJobs.Script.Config;
using Microsoft.Azure.WebJobs.Script.Description;
using Microsoft.Azure.WebJobs.Script.WebHost.Filters;
@@ -10,6 +10,7 @@
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Dependencies;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Script.Binding;
using Microsoft.Azure.WebJobs.Script.Description;
using Microsoft.Azure.WebJobs.Script.WebHost.Filters;
@@ -3,11 +3,11 @@

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using System.Web.Http;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.Azure.WebJobs.Script.WebHost.Filters;
using Microsoft.Azure.WebJobs.Script.WebHost.Models;
@@ -11,6 +11,7 @@
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
using Microsoft.Azure.WebJobs.Extensions.Http;

namespace Microsoft.Azure.WebJobs.Script.WebHost.Filters
{
@@ -8,6 +8,7 @@
using System.Threading.Tasks;
using System.Web.Http.Filters;
using Microsoft.Azure.Web.DataProtection;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.IdentityModel.Tokens;
using static Microsoft.Azure.WebJobs.Script.Config.ScriptSettingsManager;
using static Microsoft.Azure.WebJobs.Script.EnvironmentSettingNames;
@@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Azure.WebJobs.Extensions.Http;

namespace Microsoft.Azure.WebJobs.Script.WebHost.Filters
{
@@ -110,4 +110,5 @@
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649:File name must match first type name", Justification = "<Pending>", Scope = "type", Target = "~T:Microsoft.Azure.WebJobs.Script.WebHost.WebApiApplication")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1118:Parameter must not span multiple lines", Justification = "<Pending>", Scope = "member", Target = "~M:Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics.MetricsEventManager.HostStarted(Microsoft.Azure.WebJobs.Script.ScriptHost)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly", Scope = "member", Target = "Microsoft.Azure.WebJobs.Script.WebHost.Models.Swagger.SwaggerDocument.#ApiEndpoints")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Scope = "member", Target = "Microsoft.Azure.WebJobs.Script.WebHost.DefaultSecretsRepositoryFactory.#Create(Microsoft.Azure.WebJobs.Script.Config.ScriptSettingsManager,Microsoft.Azure.WebJobs.Script.WebHost.WebHostSettings,Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Scope = "member", Target = "Microsoft.Azure.WebJobs.Script.WebHost.DefaultSecretsRepositoryFactory.#Create(Microsoft.Azure.WebJobs.Script.Config.ScriptSettingsManager,Microsoft.Azure.WebJobs.Script.WebHost.WebHostSettings,Microsoft.Azure.WebJobs.Script.ScriptHostConfiguration)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1014:MarkAssembliesWithClsCompliant")]
@@ -10,22 +10,23 @@
using System.Web.Http;
using System.Web.Http.ExceptionHandling;
using System.Web.Http.Results;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.Azure.WebJobs.Host.Diagnostics;
using Microsoft.Azure.WebJobs.Script.WebHost.Models;
using Newtonsoft.Json;
using ExceptionProcessor = System.Action<System.Web.Http.ExceptionHandling.ExceptionContext,
Microsoft.Azure.WebJobs.Script.AuthorizationLevel, Microsoft.Azure.WebJobs.Script.WebHost.Models.ApiErrorModel>;
Microsoft.Azure.WebJobs.Extensions.Http.AuthorizationLevel, Microsoft.Azure.WebJobs.Script.WebHost.Models.ApiErrorModel>;

namespace Microsoft.Azure.WebJobs.Script.WebHost.Controllers
{
public class ExceptionProcessingHandler : ExceptionHandler
{
private readonly IDictionary<Type, ExceptionProcessor> _handlers;
private readonly HttpConfiguration _config;
private readonly System.Web.Http.HttpConfiguration _config;
private readonly Lazy<TraceWriter> _traceWriterLoader;

public ExceptionProcessingHandler(HttpConfiguration config)
public ExceptionProcessingHandler(System.Web.Http.HttpConfiguration config)
{
if (config == null)
{
@@ -8,6 +8,7 @@
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http.Routing;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Script.Binding;
using Microsoft.Azure.WebJobs.Script.Config;
using Microsoft.Azure.WebJobs.Script.Description;
@@ -148,7 +148,7 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.Compression" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.0.0.0" />
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Security.Cryptography.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
Oops, something went wrong.

0 comments on commit dcc9e1d

Please sign in to comment.
You can’t perform that action at this time.