static ScribbleResources() { DeploymentContext deploymentContext = new StorageContext() { CurrentEnvironment = EnvironmentEnum.DevBox }; var tmp = deploymentContext.GetQueueInstanceAsync(); tmp.Wait(); Queue = tmp.Result; UrlGenerator = new Base62ShortUrlFactory(); }
static ScribbleWorkerRoleResource() { DeploymentContext deploymentContext = new StorageContext() { CurrentEnvironment = EnvironmentEnum.DevBox }; var tableTask = deploymentContext.GetTableInstanceAsync(); var queueTask = deploymentContext.GetQueueInstanceAsync(); tableTask.Wait(); queueTask.Wait(); Table = tableTask.Result; Queue = queueTask.Result; }