allow specification of app pool attributes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
)
|
||||
},
|
||||
|
||||
@@ -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")]
|
||||
Reference in New Issue
Block a user