IsChannelRequired() public static method

public static IsChannelRequired ( Uri destination ) : bool
destination System.Uri
return bool
Exemplo n.º 1
0
        private StorageCredentialsFactory CreateStorageCredentialsFactory()
        {
            StorageCredentialsFactory storageCredentialsFactory;

            var storageClient = AzureSession.ClientFactory.CreateArmClient <StorageManagementClient>(
                DefaultProfile.Context, AzureEnvironment.Endpoint.ResourceManager);

            if (StorageCredentialsFactory.IsChannelRequired(Destination))
            {
                storageCredentialsFactory = new StorageCredentialsFactory(this.ResourceGroupName, storageClient, DefaultContext.Subscription);
            }
            else
            {
                storageCredentialsFactory = new StorageCredentialsFactory();
            }

            return(storageCredentialsFactory);
        }