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

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

            return(storageCredentialsFactory);
        }
Exemplo n.º 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;
 }