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

            UrlGenerator = new Base62ShortUrlFactory();
        }
        static ScribbleWebEndpointResources()
        {
            DeploymentContext = new StorageContext()
            {
                CurrentEnvironment = EnvironmentEnum.DevBox
            };

            var tableTask = DeploymentContext.GetTableInstanceAsync();
            tableTask.Wait();
            Table = tableTask.Result;

            UrlFactory = new Base62ShortUrlFactory();
            StorageHelper = new Base62StorageHelper();
            ScribbleCryptographyHandler = new ScribbleCryptographyHandler();
        }
Example #3
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;
        }