Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Solution/build-bin/HLF.ContextConfig.dll
Binary file not shown.
Binary file modified Solution/build-bin/HLF.ContextConfig.pdb
Binary file not shown.
119 changes: 66 additions & 53 deletions Solution/build-config/ContextConfig.config
Original file line number Diff line number Diff line change
@@ -1,53 +1,66 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="ContextConfig" type="HLF.ContextConfig.ConfigSettings, HLF.ContextConfig" allowLocation="true" allowDefinition="Everywhere" />
</configSections>

<ContextConfig version="1.1" OverrideConfigurationManager="true" >
<!-- Add a line for each domain you plan on having-->
<Domains>
<Domain url="mysite.local" environment="local" sitename="MySite"/>
<Domain url="localhost:52426" environment="local" sitename="MySite"/>
<Domain url="mysite.dev" environment="dev" sitename="MySite"/>
<Domain url="mysite.stage" environment="staging" sitename="MySite"/>
<Domain url="mysite.com" environment="live" sitename="MySite"/>
<Domain url="*" environment="live" sitename="MySite"/><!-- handles any additional domains, delete if you'd prefer that an error be raised -->
</Domains>

<Environments>
<!-- The "default" Environment holds default values, to be used if there isn't a specific value specified for an environment -->
<Environment name="default">
<Configs>
<add key="MyAppKey" value="Default Value"/>
<add key="LiveOnlyAppKey" value="Default for all env other than live"/>
<add key="OverrideTest" value="Default from ContextConfig.config"/>
</Configs>
</Environment>
<Environment name="local">
<Configs>
<add key="MyAppKey" value="Value for Local"/>
<!--<add key="OverrideTest" value="Local from ContextConfig.config"/>-->
</Configs>
</Environment>
<Environment name="dev">
<Configs>
<add key="MyAppKey" value="Value for Dev"/>
</Configs>
</Environment>
<Environment name="staging">
<Configs>
<add key="MyAppKey" value="Value for Staging"/>
</Configs>
</Environment>
<Environment name="live">
<Configs>
<add key="MyAppKey" value="Value for Live"/>
<add key="LiveOnlyAppKey" value="Live-specific Value"/>
</Configs>
</Environment>
</Environments>

</ContextConfig>

</configuration>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="ContextConfig" type="HLF.ContextConfig.ConfigSettings, HLF.ContextConfig" allowLocation="true" allowDefinition="Everywhere" />
</configSections>

<ContextConfig version="1.1" OverrideConfigurationManager="true" >
<!-- Add a line for each domain you plan on having-->
<Domains>
<Domain url="mysite.local" environment="local" sitename="MySite"/>
<Domain url="localhost:52426" environment="local" sitename="MySite"/>
<Domain url="mysite.dev" environment="dev" sitename="MySite"/>
<Domain url="mysite.stage" environment="staging" sitename="MySite"/>
<Domain url="mysite.com" environment="live" sitename="MySite"/>
<Domain url="*" environment="live" sitename="MySite"/><!-- handles any additional domains, delete if you'd prefer that an error be raised -->
</Domains>

<Environments>
<!-- The "default" Environment holds default values, to be used if there isn't a specific value specified for an environment -->
<Environment name="default">
<Configs>
<add key="MyAppKey" value="Default Value"/>
<add key="LiveOnlyAppKey" value="Default for all env other than live"/>
<add key="OverrideTest" value="Default from ContextConfig.config"/>
</Configs>
<SmtpSettings deliveryMethod="SpecifiedPickupDirectory" from="config.default@test.com" deliveryFormat="International">
<network clientDomain="defaultConfigDomain" defaultCredentials="false" enableSsl="true" host="mydefaultconfighost" password="defaultConfig1234" port="1024" targetName="defaultConfigTarget" userName="defaultConfigUser" />
<specifiedPickupDirectory pickupDirectoryLocation="c:\temp\defaultConfig"/>
</SmtpSettings>
</Environment>
<Environment name="local">
<Configs>
<add key="MyAppKey" value="Value for Local"/>
<!--<add key="OverrideTest" value="Local from ContextConfig.config"/>-->
</Configs>
<SmtpSettings deliveryMethod="SpecifiedPickupDirectory" deliveryFormat="International">
<network clientDomain="local" defaultCredentials="false" host="myhostLocal" password="localConfig2345" port="14450" />
<specifiedPickupDirectory pickupDirectoryLocation="c:\temp\local"/>
</SmtpSettings>
</Environment>
<Environment name="dev">
<Configs>
<add key="MyAppKey" value="Value for Dev"/>
</Configs>
</Environment>
<Environment name="staging">
<Configs>
<add key="MyAppKey" value="Value for Staging"/>
</Configs>
<SmtpSettings from="staging@test.com" >
<specifiedPickupDirectory />
</SmtpSettings>
</Environment>
<Environment name="live">
<Configs>
<add key="MyAppKey" value="Value for Live"/>
<add key="LiveOnlyAppKey" value="Live-specific Value"/>
</Configs>
<SmtpSettings from="live@test.com" >
<network defaultCredentials="false" password="livePassword" userName="liveUser" clientDomain="live" />
</SmtpSettings>
</Environment>
</Environments>

</ContextConfig>
</configuration>
Loading