Esempio n. 1
0
        static ScribbleResources()
        {
            DeploymentContext deploymentContext = new StorageContext()
            {
                CurrentEnvironment = EnvironmentEnum.DevBox
            };
            var tmp = deploymentContext.GetQueueInstanceAsync();
            tmp.Wait();
            Queue = tmp.Result;

            UrlGenerator = new Base62ShortUrlFactory();
        }
Esempio n. 2
0
        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;
        }