Example #1
0
        private static string BuildConnectionString(string endpoint, ContainerInstance instance)
        {
            CloudStorageAccount dev = CloudStorageAccount.DevelopmentStorageAccount;

            return
                ($"DefaultEndpointsProtocol=http;AccountName={dev.Credentials.AccountName};" +
                 $"AccountKey={dev.Credentials.ExportBase64EncodedKey()};" +
                 $"{endpoint}=http://{instance.Address}:{instance.HostPort}/" +
                 $"{dev.Credentials.AccountName};");
        }
Example #2
0
 internal static string GetForBlob(ContainerInstance instance)
 {
     return(BuildConnectionString("BlobEndpoint", instance));
 }
Example #3
0
 internal static string GetForQueue(ContainerInstance instance)
 {
     return(BuildConnectionString("QueueEndpoint", instance));
 }