allow specification of app pool attributes

This commit is contained in:
Tommy Parnell
2016-04-29 10:45:29 -04:00
parent c89671e662
commit 59d844a64d
3 changed files with 37 additions and 23 deletions

View File

@@ -6,19 +6,25 @@ using System.Threading.Tasks;
namespace QuikPak
{
public class Config
{
public string Id { get; set; }
public string UpgradeCode { get; set; }
public string Name { get; set; }
public string Version { get; set; }
public ICollection<Endpoint> Endpoints { get; set; }
}
public class Config
{
public string Id { get; set; }
public string UpgradeCode { get; set; }
public string Name { get; set; }
public string Version { get; set; }
public ICollection<Endpoint> Endpoints { get; set; }
public class Endpoint
{
public int Port { get; set; }
public string DnsName { get; set; }
public bool Secure { get; set; } = false;
}
}
public string Identity { get; set; } = "localSystem";
public int RecycleMinutes { get; set; } = 0;
public int IdleTimeout { get; set; } = 0;
public string ManagedPipelineMode { get; set; } = "Intergrated";
public string ManagedRuntimeVersion { get; set; } = "v4.0";
}
public class Endpoint
{
public int Port { get; set; }
public string DnsName { get; set; }
public bool Secure { get; set; } = false;
}
}

View File

@@ -60,7 +60,15 @@ namespace QuikPak
Description = config.Name,
Addresses = addresses.ToArray(),
},
WebAppPool = new WebAppPool(config.Name)
WebAppPool = new WebAppPool(config.Name) {
Attributes = new Dictionary<string, string>() {
["Identity"] = config.Identity,
["RecycleMinutes"] = config.RecycleMinutes.ToString(),
["IdleTimeout"] = config.IdleTimeout.ToString(),
["ManagedPipelineMode"] = config.ManagedPipelineMode,
["ManagedRuntimeVersion"] = config.ManagedRuntimeVersion
}
}
})
)
},

View File

@@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("QuikPak")]
@@ -14,8 +14,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -25,12 +25,12 @@ using System.Runtime.InteropServices;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("0.6.0.0")]
[assembly: AssemblyFileVersion("0.6.0.0")]