예제 #1
0
 /// <summary>
 /// Initialize a new private IIS Virtual Server.
 /// </summary>
 /// <param name="description">Shows in the IIS snap-in as comment.</param>
 /// <param name="homeDirectory">Location of the website files.</param>
 /// <param name="redirectUrl">URL to redirect to.</param>
 /// <param name="applicationPool">Application pool to use.</param>
 /// <param name="bindings">Any number of bindings.</param>
 /// <param name="authFlags">
 /// Basic should be used if HTTPS is not enabled, and NTLM should be
 /// used to enable windows integrated authentication.
 /// </param>
 /// <param name="accessFlags">Reflects user access to website.</param>
 public VirtualServer(
     string description,
     string homeDirectory,
     string applicationPool,
     IEnumerable <VirtualServerBinding> bindings,
     VirtualServerAccessFlag accessFlags,
     VirtualServerAuthFlag authFlags,
     VirtualServerPath path)
     : this(
         description,
         homeDirectory,
         null,
         applicationPool,
         bindings,
         authFlags,
         accessFlags,
         null,
         VirtualServerRedirectFlag.None,
         path)
 {
 }
예제 #2
0
 /// <summary>
 /// Initializes a new Virtual Server (all prarameters - protected).
 /// </summary>
 /// <param name="description">Shows in the IIS snap-in as comment.</param>
 /// <param name="homeDirectory">Location of the website files.</param>
 /// <param name="applicationPool">Application pool to use.</param>
 /// <param name="bindings">Any number of bindings.</param>
 /// <param name="authFlags">
 /// Basic should be used if HTTPS is not enabled, and NTLM should be
 /// used to enable windows integrated authentication.
 /// </param>
 /// <param name="accessFlags">Reflects user access to website.</param>
 /// <param name="redirectUrl">URL to redirect to, null accepted.</param>
 /// <param name="redirectFlags">HttpRedirect append flags.</param>
 protected VirtualServer(
     string description,
     string homeDirectory,
     WindowsUser anonymousUser,
     string applicationPool,
     IEnumerable <VirtualServerBinding> bindings,
     VirtualServerAuthFlag authFlags,
     VirtualServerAccessFlag accessFlags,
     string redirectUrl,
     VirtualServerRedirectFlag redirectFlags,
     VirtualServerPath path)
 {
     this.description     = description;
     this.homeDirectory   = homeDirectory;
     this.applicationPool = applicationPool;
     this.bindings        = bindings;
     this.authFlags       = authFlags;
     this.accessFlags     = accessFlags;
     this.redirectUrl     = redirectUrl;
     this.redirectFlags   = redirectFlags;
     this.anonymousUser   = anonymousUser;
     this.path            = path;
 }