// TODO: To remove this function which is not referenced anywhere.
 protected override void InitChannelCurrentSubscription(bool force)
 {
     if (StorageCredentialsFactory.IsChannelRequired(this.Destination))
     {
         Channel = CreateChannel();
     }
 }
        private StorageCredentialsFactory CreateStorageCredentialsFactory()
        {
            StorageCredentialsFactory storageCredentialsFactory;

            if (StorageCredentialsFactory.IsChannelRequired(Destination))
            {
                storageCredentialsFactory = new StorageCredentialsFactory(this.StorageClient, this.CurrentSubscription);
            }
            else
            {
                storageCredentialsFactory = new StorageCredentialsFactory();
            }

            return(storageCredentialsFactory);
        }
Beispiel #3
0
 public CloudPageBlobObjectFactory(StorageCredentialsFactory credentialsFactory, TimeSpan operationTimeout)
 {
     this.credentialsFactory = credentialsFactory;
     this.operationTimeout   = operationTimeout;
 }
        private StorageCredentialsFactory CreateStorageCredentialsFactory()
        {
            StorageCredentialsFactory storageCredentialsFactory;
            if (StorageCredentialsFactory.IsChannelRequired(Destination))
            {
                storageCredentialsFactory = new StorageCredentialsFactory(this.StorageClient, this.Profile.Context.Subscription);
            }
            else
            {
                storageCredentialsFactory = new StorageCredentialsFactory();
            }

            return storageCredentialsFactory;
        }
 public CloudPageBlobObjectFactory(StorageCredentialsFactory credentialsFactory, TimeSpan operationTimeout)
 {
     this.credentialsFactory = credentialsFactory;
     this.operationTimeout = operationTimeout;
 }