This file contains hidden or 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
ngOnInit() { | |
this.route.params.subscribe(params => { | |
var w = params.id; | |
this.backendService.getWardrobe(w).then( | |
wardrobe => { | |
this.wardrobe = wardrobe; | |
this.calcOutfit(); | |
}); | |
}); | |
} |
This file contains hidden or 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
"index": { | |
"matchCondition": { | |
"route": "/", | |
"methods": [ | |
"GET" | |
] | |
}, | |
"backendUri": "https://XXX.blob.core.windows.net/webapp/index.html" | |
}, | |
This file contains hidden or 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
version: "3.3" | |
services: | |
web: | |
image: richarvey/nginx-php-fpm:latest | |
container_name: web | |
links: | |
- db | |
ports: | |
- "80:80" | |
volumes: |
This file contains hidden or 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
<appSettings> | |
<add key="Server" value="192.168.1.1"/> | |
</appSettings> |
This file contains hidden or 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
var serverAddress = ConfigurationManager.AppSettings["Server"]; | |
if ( !IsAlive(serverAddress) ) | |
{ | |
// Uh oh, dead server! Do something! | |
} |
This file contains hidden or 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
<appSettings> | |
<add key="Server1" value="192.168.1.1"/> | |
<add key="Server2" value="192.168.1.6"/> | |
<add key="Server3" value="192.168.1.14"/> | |
</appSettings> |
This file contains hidden or 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
var serverAddress1 = ConfigurationManager.AppSettings["Server1"]; | |
if ( !IsAlive(serverAddress1) ) | |
{ | |
// Uh oh, server ONE is dead! Do something! | |
} |
This file contains hidden or 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
<configuration> | |
<configSections> | |
<section name="servers" | |
type="LearnConfigCollection.ServerSection, LearnConfigCollection" /> | |
</configSections> |
This file contains hidden or 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
var servers = ConfigurationManager.GetSection("servers") as ServerSection; | |
foreach (ServerElement server in servers.Instances) | |
{ | |
if (!IsAlive(server.IpAddress)) |
This file contains hidden or 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
using System.Configuration; | |
namespace LearnConfigCollection | |
{ | |
public class ServerSection : ConfigurationSection |