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
{ | |
"variables": { | |
"name": "w10e-hyperv-sysprep", | |
"description": "Windows 10 Enterprise", | |
"version": "0.7.0", | |
"author": "gusztavvargadr", | |
"output_directory": "output", | |
"hyperv_ram_size": "4096", | |
"hyperv_enable_dynamic_memory": "false", | |
"hyperv_cpu": "2", |
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
.\ci.ps1 restore w16s-hyperv |
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
Executing task: packer-info | |
w16s-hyperv-sysprep: Info | |
Finished executing task: packer-info |
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
.\ci.ps1 info w16s-hyperv |
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
Executing task: packer-info | |
w10e-virtualbox-base: Info | |
w10e-virtualbox-sysprep: Info | |
w10e-hyperv-sysprep: Info | |
w10e-dc-virtualbox-base: Info | |
w10e-dc-virtualbox-sysprep: Info | |
w10e-dc-hyperv-sysprep: Info | |
w16s-virtualbox-base: Info | |
w16s-virtualbox-sysprep: Info | |
w16s-hyperv-sysprep: Info |
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
.\ci.ps1 info |
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
var configurationBuilder = new ConfigurationBuilder(); | |
configurationBuilder.AddAppSettings(); | |
configurationBuilder.AddConnectionStrings(); | |
var configuration = configurationBuilder.Build(); | |
var appSettings = configuration.Get<AppSettings>("AppSettings); | |
var connectionString = configuration["Data:DefaultConnection:ConnectionString"]; | |
var providerName = configuration["Data:DefaultConnection:ProviderName"]; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<appSettings> | |
<add key="Host" value="http://localhost" /> | |
<add key="Connection:TimesOutIn" value="00:01:00" /> | |
<add key="Connection:RetryCount" value="5" /> | |
</appSettings> | |
<connectionStrings> | |
<add name="DefaultConnection" connectionString="DefaultConnection-ConnectionString" providerName="DefaultConnection-ProviderName" /> | |
</connectionStrings> |
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
var octopusSettings = new OctopusConfigurationProviderOptions | |
{ | |
ServerAddress = new Uri("https://demo.octopusdeploy.com/"), | |
ApiKey = "API-GUEST", | |
ProjectName = "OctoFX Rate Service", | |
EnvironmentName = "Production" | |
}; | |
var configurationBuilder = new ConfigurationBuilder(); | |
configurationBuilder.AddOctopus(octopusSettings); |
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 class HomeController : Controller | |
{ | |
public HomeController(IOptions<AppSettings> appSettingsOptions) | |
{ | |
AppSettings = appSettingsOptions.Options; | |
} | |
AppSettings AppSettings { get; } | |
} |