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); } }
public BlobCopier(Options options) { _options = options; }