Skip to content

Commit 9b4ab55

Browse files
committed
Moving ServiceBus to SharedAssembly list
1 parent 8a338dd commit 9b4ab55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/WebJobs.Script/Description/DotNet/FunctionMetadataResolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public sealed class FunctionMetadataResolver : MetadataReferenceResolver, IFunct
4646
typeof(object).Assembly.Location,
4747
typeof(IAsyncCollector<>).Assembly.Location, /*Microsoft.Azure.WebJobs*/
4848
typeof(JobHost).Assembly.Location, /*Microsoft.Azure.WebJobs.Host*/
49-
typeof(ServiceBusAttribute).Assembly.Location /*Microsoft.Azure.WebJobs.ServiceBus*/,
5049
typeof(CoreJobHostConfigurationExtensions).Assembly.Location, /*Microsoft.Azure.WebJobs.Extensions*/
5150
typeof(System.Web.Http.ApiController).Assembly.Location, /*System.Web.Http*/
5251
typeof(System.Net.Http.HttpClientExtensions).Assembly.Location /*System.Net.Http.Formatting*/
@@ -55,6 +54,7 @@ public sealed class FunctionMetadataResolver : MetadataReferenceResolver, IFunct
5554
private static readonly List<ISharedAssemblyProvider> SharedAssemblyProviders = new List<ISharedAssemblyProvider>
5655
{
5756
new DirectSharedAssemblyProvider(typeof(Newtonsoft.Json.JsonConvert).Assembly), /* Newtonsoft.Json */
57+
new DirectSharedAssemblyProvider(typeof(ServiceBusAttribute).Assembly), /* Microsoft.Azure.WebJobs.ServiceBus */
5858
new DirectSharedAssemblyProvider(typeof(WindowsAzure.Storage.StorageUri).Assembly), /* Microsoft.WindowsAzure.Storage */
5959
new LocalSharedAssemblyProvider(@"^Microsoft\.AspNet\.WebHooks\..*"), /* Microsoft.AspNet.WebHooks.* */
6060
};

test/WebJobs.Script.Tests/WebScriptHostHandlerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public async Task SendAsync_HostInErrorState_Returns503Immediately()
6767
HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, "http://functions.test.com/api/test");
6868
HttpResponseMessage response = await _invoker.SendAsync(request, CancellationToken.None);
6969
Assert.Equal(HttpStatusCode.ServiceUnavailable, response.StatusCode);
70-
_managerMock.VerifyGet(P => P.IsRunning, Times.Exactly(2));
70+
_managerMock.VerifyGet(p => p.IsRunning, Times.Exactly(2));
7171
}
7272

7373
public class TestHandler : DelegatingHandler

0 commit comments

Comments
 (0)