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

            UrlGenerator = new Base62ShortUrlFactory();
        }
示例#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;
        }