Esempio n. 1
0
        protected override void OnStart(string[] args)
        {
            var blobSyncSection = ConfigurationManager.GetSection(BlobSyncSection.SectionName) as BlobSyncSection;
            if (blobSyncSection == null)
            {
                return;
            }

            foreach (BlobSyncSettingsElement settings in blobSyncSection.BlobSyncSettings)
            {
                var endpoint = new Options
                {
                    Account = settings.Account,
                    Container = settings.Container,
                    Key = settings.Key,
                    Target = settings.Target
                };
                var copier = new BlobCopier(endpoint);
                copier.Start();
                _copiers.Add(copier);
            }
        }
Esempio n. 2
0
 public BlobCopier(Options options)
 {
     _options = options;
 }