Where are the Azure WebJob BlobInput and BlobOutput classes?

I am creating an Azure WebJob console application that resizes images uploaded to the blob repository. When executing any of the code examples on the Internet, I cannot reference and use the attributes of the input parameters BlobInput and BlobOutput. I am using Microsoft.Azure.Jobs 0.3.0-beta NuGet package (and Microsoft.Azure.Jobs.Core).

What namespaces are BlogInput and BlobOutput in? Is there another NuGet package I need?

Here is my code that does not compile because it cannot resolve BlobInput and BlobOutput:

using Microsoft.Azure.Jobs; using System.IO; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { JobHost host = new JobHost(); host.RunAndBlock(); } public static void SquishNewlyUploadedPNGs([BlobInput("input/{name}")] Stream input, [BlobOutput("output/{name}")] Stream output) { //... } } } 
+6
source share
1 answer

In the beta version of the Azure WebJobs SDK, we changed the attribute names as described below. Functionality remains the same.

 BlobInputAttribute -> BlobTriggerAttribute BlobOutputAttribute -> BlobAttribute QueueInputAttribute -> QueueTriggerAttribute QueueOutputAttribute -> QueueAttribute 

In addition, package names are changed. You should use:

 http://www.nuget.org/packages/Microsoft.Azure.Jobs/0.3.0-beta http://www.nuget.org/packages/Microsoft.Azure.Jobs.Core/0.3.0-beta 
+18
source

Source: https://habr.com/ru/post/971008/


All Articles