This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head><title>Accessing App Settings from PHP</title></head> | |
<body> | |
<h1>Hello from <?php echo getenv("CloudProvider"); ?></h1> | |
<ul> | |
<li><label>Service Bus Namespace:</label> <?php echo getenv("ServiceBusConnectionString"); ?></li> | |
<li><label>Storage Connection String:</label> <?php echo getenv("StorageConnectionString"); ?> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upload_max_filesize = 12M | |
log_errors=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Developer: Cory Fowler | |
// | |
namespace Net.SyntaxC4.Helpers | |
{ | |
using System.Configuration; | |
using Microsoft.WindowsAzure.ServiceRuntime; | |
/// <summary> | |
/// Provides a way of Providing Context between Cloud and On-Premise Deployment of an Application. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public ActionResult Index() | |
{ | |
const string welcomeNote = "Welcome to ASP.NET MVC {0}!"; | |
var account = CloudStorageAccount.Parse( | |
RoleEnvironment. | |
GetConfigurationSettingValue("DataConnectionString")); | |
ViewBag.Message = (account.BlobEndpoint.IsLoopback) ? | |
string.Format(welcomeNote, " on Local") : |
NewerOlder