Skip to content

Commit a0925eb

Browse files
committed
Merge remote-tracking branch 'origin/dev'
2 parents 39e41ce + cb6c976 commit a0925eb

16 files changed

+390
-549
lines changed

schemas/json/function.json

Lines changed: 226 additions & 514 deletions
Large diffs are not rendered by default.

src/WebJobs.Script.WebHost/Filters/AuthorizationLevelAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ internal static async Task<AuthorizationLevel> GetAuthorizationLevelAsync(HttpRe
8888
// if there is a function specific key specified try to match against that
8989
if (functionName != null)
9090
{
91-
IDictionary<string, string> functionSecrets = secretManager.GetFunctionSecretsAsync(functionName).GetAwaiter().GetResult();
91+
IDictionary<string, string> functionSecrets = await secretManager.GetFunctionSecretsAsync(functionName);
9292
if (functionSecrets != null &&
9393
functionSecrets.Values.Any(s => Key.SecretValueEquals(keyValue, s)))
9494
{

src/WebJobs.Script.WebHost/Web.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
</dependentAssembly>
144144
<dependentAssembly>
145145
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
146-
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
146+
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.0.0.0" />
147147
</dependentAssembly>
148148
<dependentAssembly>
149149
<assemblyIdentity name="Microsoft.Extensions.Primitives" publicKeyToken="adb9793829ddae60" culture="neutral" />

src/WebJobs.Script.WebHost/WebJobs.Script.WebHost.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
<Private>True</Private>
224224
</Reference>
225225
<Reference Include="Microsoft.Azure.WebSites.DataProtection, Version=0.1.6.0, Culture=neutral, processorArchitecture=MSIL">
226-
<HintPath>..\..\packages\Microsoft.Azure.WebSites.DataProtection.0.1.6-alpha45\lib\net46\Microsoft.Azure.WebSites.DataProtection.dll</HintPath>
226+
<HintPath>..\..\packages\Microsoft.Azure.WebSites.DataProtection.0.1.6-alpha51\lib\net46\Microsoft.Azure.WebSites.DataProtection.dll</HintPath>
227227
<Private>True</Private>
228228
</Reference>
229229
<Reference Include="Microsoft.Bot.Connector.DirectLine, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">

src/WebJobs.Script.WebHost/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<package id="Microsoft.Azure.WebJobs.Logging" version="2.0.0-beta2-10515" targetFramework="net46" />
5050
<package id="Microsoft.Azure.WebJobs.Script.Extensibility" version="1.0.0-beta2-10726" targetFramework="net46" />
5151
<package id="Microsoft.Azure.WebJobs.ServiceBus" version="2.0.0-beta2-10515" targetFramework="net46" />
52-
<package id="Microsoft.Azure.WebSites.DataProtection" version="0.1.6-alpha45" targetFramework="net46" />
52+
<package id="Microsoft.Azure.WebSites.DataProtection" version="0.1.6-alpha51" targetFramework="net46" />
5353
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="net46" />
5454
<package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="net46" />
5555
<package id="Microsoft.Bot.Connector.DirectLine" version="3.0.0-beta" targetFramework="net46" />

test/WebJobs.Script.Tests.Integration/App.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
</dependentAssembly>
7272
<dependentAssembly>
7373
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
74-
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
74+
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.0.0.0" />
7575
</dependentAssembly>
7676
<dependentAssembly>
7777
<assemblyIdentity name="System.Xml.ReaderWriter" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />

test/WebJobs.Script.Tests.Integration/FunctionGeneratorEndToEndTests.cs

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using Microsoft.Azure.WebJobs.Script.Config;
1717
using Microsoft.Azure.WebJobs.Script.Description;
1818
using Microsoft.Azure.WebJobs.Script.WebHost;
19+
using Microsoft.WebJobs.Script.Tests;
1920
using Xunit;
2021

2122
namespace Microsoft.Azure.WebJobs.Script.Tests
@@ -160,30 +161,5 @@ await TestHelpers.Await(() =>
160161
}
161162
}
162163
}
163-
164-
private sealed class SingleThreadSynchronizationContext : SynchronizationContext
165-
{
166-
private readonly ConcurrentQueue<Tuple<SendOrPostCallback, object>> _workItems =
167-
new ConcurrentQueue<Tuple<SendOrPostCallback, object>>();
168-
169-
public override void Post(SendOrPostCallback d, object state)
170-
{
171-
_workItems.Enqueue(new Tuple<SendOrPostCallback, object>(d, state));
172-
}
173-
174-
public override void Send(SendOrPostCallback d, object state)
175-
{
176-
throw new NotSupportedException();
177-
}
178-
179-
public void Run()
180-
{
181-
Tuple<SendOrPostCallback, object> item;
182-
while (_workItems.TryDequeue(out item))
183-
{
184-
item.Item1(item.Item2);
185-
}
186-
}
187-
}
188164
}
189165
}

test/WebJobs.Script.Tests.Integration/SamplesEndToEndTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
using System.Net.Http.Headers;
1111
using System.Reflection;
1212
using System.Text;
13+
using System.Threading;
1314
using System.Threading.Tasks;
1415
using System.Web.Http;
16+
using System.Web.Http.Hosting;
1517
using System.Xml.Linq;
1618
using Microsoft.Azure.WebJobs.Host;
1719
using Microsoft.Azure.WebJobs.Script.Config;
@@ -20,13 +22,15 @@
2022
using Microsoft.Azure.WebJobs.Script.WebHost.Models;
2123
using Microsoft.ServiceBus;
2224
using Microsoft.ServiceBus.Messaging;
25+
using Microsoft.WebJobs.Script.Tests;
2326
using Microsoft.WindowsAzure.Storage;
2427
using Microsoft.WindowsAzure.Storage.Blob;
2528
using Microsoft.WindowsAzure.Storage.Queue;
2629
using Microsoft.WindowsAzure.Storage.Table;
2730
using Newtonsoft.Json;
2831
using Newtonsoft.Json.Linq;
2932
using Xunit;
33+
using static Microsoft.Azure.WebJobs.Script.Tests.FunctionGeneratorTests;
3034

3135
namespace Microsoft.Azure.WebJobs.Script.Tests
3236
{

test/WebJobs.Script.Tests.Integration/WebJobs.Script.Tests.Integration.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
<Private>True</Private>
158158
</Reference>
159159
<Reference Include="Microsoft.Azure.WebSites.DataProtection, Version=0.1.6.0, Culture=neutral, processorArchitecture=MSIL">
160-
<HintPath>..\..\packages\Microsoft.Azure.WebSites.DataProtection.0.1.6-alpha45\lib\net46\Microsoft.Azure.WebSites.DataProtection.dll</HintPath>
160+
<HintPath>..\..\packages\Microsoft.Azure.WebSites.DataProtection.0.1.6-alpha51\lib\net46\Microsoft.Azure.WebSites.DataProtection.dll</HintPath>
161161
<Private>True</Private>
162162
</Reference>
163163
<Reference Include="Microsoft.Bot.Connector.DirectLine, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">

test/WebJobs.Script.Tests.Integration/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<package id="Microsoft.Azure.WebJobs.Logging" version="2.0.0-beta2-10515" targetFramework="net46" />
3434
<package id="Microsoft.Azure.WebJobs.Script.Extensibility" version="1.0.0-beta2-10726" targetFramework="net46" />
3535
<package id="Microsoft.Azure.WebJobs.ServiceBus" version="2.0.0-beta2-10515" targetFramework="net46" />
36-
<package id="Microsoft.Azure.WebSites.DataProtection" version="0.1.6-alpha45" targetFramework="net46" />
36+
<package id="Microsoft.Azure.WebSites.DataProtection" version="0.1.6-alpha51" targetFramework="net46" />
3737
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="net46" />
3838
<package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="net46" />
3939
<package id="Microsoft.Bot.Connector.DirectLine" version="3.0.0-beta" targetFramework="net46" />

0 commit comments

Comments
 (0)