public override void Run()
 {
     Trace.WriteLine(RoleEnvironment.CurrentRoleInstance.Role.Name + " entry point called.", "Information");
     string blobCleanupIntevalSetting = CloudConfigurationManager.GetSetting("BlobCleanupInterval");
     var cleanup = new BlobCleanup(TimeSpan.Parse(blobCleanupIntevalSetting));
     cleanup.Run(new ReadOnlyCollection<string>(new[]
     {
         CloudConfigurationManager.GetSetting("ServiceOfferingFileContainerName"),
         CloudConfigurationManager.GetSetting("CustomDataFileContainerName")
     }));
     base.Run();
 }
示例#2
0
        public override void Run()
        {
            Trace.WriteLine(RoleEnvironment.CurrentRoleInstance.Role.Name + " entry point called.", "Information");
            string blobCleanupIntevalSetting = CloudConfigurationManager.GetSetting("BlobCleanupInterval");
            var    cleanup = new BlobCleanup(TimeSpan.Parse(blobCleanupIntevalSetting));

            cleanup.Run(new ReadOnlyCollection <string>(new[]
            {
                CloudConfigurationManager.GetSetting("ServiceOfferingFileContainerName"),
                CloudConfigurationManager.GetSetting("CustomDataFileContainerName")
            }));
            base.Run();
        }