Wednesday, 15 August 2012

Get application path on Azure worker role Run() -



Get application path on Azure worker role Run() -

i'm trying run azure application using azure emulator. have worker role added , i've overridden method run().

in code, need physical path of worker role or project.

i tried utilize environment.getenvironmentvariable("tempfolder") , httpruntime.appdomainapppath both returned null.

do have advice physical path on worker role run()?

worker roles not persisting temporary folders , not recommended utilize them. local storage should utilize local resources. must configure these resources in advance.

and actual folder path, utilize code:

roleenvironment.getlocalresource("resourcename").rootpath;

where "resourcename" name of configured local resource.

a bit more description here

azure azure-worker-roles

No comments:

Post a Comment