How to run webjobs in azure emulator

久未见 提交于 2019-12-11 09:53:58

问题


I have a console based application as WebJob. Now internally i am trying to map a CloudDrive using the storageconnectionstring UseDevelopmentStorage=true

It is throwing exception ERROR_AZURE_DRIVE_DEV_PATH_NOT_SET. I searched for this error and found that WebJobs do not run locally in Azure emulator. Is this information still valid? Is there any plan to provide emulator (storage) support for webjobs in near future say in a week or so?

thanks


回答1:


The information is still valid - we don't support the Azure emulator.

We have that work item on our backlog but I cannot give you any ETA.




回答2:


Boo hoo Microsoft... This seems rather stupid given that you want us to start adopting the use of Azure Web Jobs!




回答3:


There are new few lines of code in current version, which I believe solves this issue

    static void Main()
    {
        var config = new JobHostConfiguration();

        if (config.IsDevelopment)
        {
            config.UseDevelopmentSettings();
        }

        var host = new JobHost();
        // The following code ensures that the WebJob will be running continuously
        host.RunAndBlock();
    }


来源:https://stackoverflow.com/questions/25860559/how-to-run-webjobs-in-azure-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!