c# - Where are Azure WebJob's BlobInput and BlobOutput classes? -
i creating azure webjob console application resizes images uploaded blob storage. when next of code samples online unable reference , utilize blobinput , bloboutput input parameter attributes. using nuget bundle microsoft.azure.jobs 0.3.0-beta (and microsoft.azure.jobs.core).
which namespaces bloginput , bloboutput found in? there nuget bundle need?
here code not compile because cannot resolve blobinput , bloboutput:
using microsoft.azure.jobs; using system.io; namespace consoleapplication2 { class programme { 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) { //... } } }
in beta version of azure webjobs sdk changed attribute names described below. functionality remained same.
blobinputattribute -> blobtriggerattribute bloboutputattribute -> blobattribute queueinputattribute -> queuetriggerattribute queueoutputattribute -> queueattribute also, bundle names changed. 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 c# azure-webjobs
No comments:
Post a Comment