示例#1
0
 public static IisSiteOptions Iis7Site(this ProtoServer protoServer, string websiteName)
 {
     var task = new IisProtoTask(websiteName, new DotNetPath())
                    {
                        Version = IisVersion.Seven,
                };
     protoServer.RegisterProtoTask(task);
     return task;
 }
示例#2
0
        public static IisSiteOptions Iis7Site(this ProtoServer protoServer, string websiteName)
        {
            var task = new IisProtoTask(websiteName, new DotNetPath())
            {
                Version = IisVersion.Seven,
            };

            protoServer.RegisterProtoTask(task);
            return(task);
        }
示例#3
0
 public static IisSiteOptions Iis7Site(this ProtoServer protoServer, string websiteName, string pathForWebsite, int port)
 {
     var task = new IisProtoTask(websiteName,new DotNetPath())
                    {
                        Version = IisVersion.Seven,
                        PathForWebsite = pathForWebsite,
                        PortForWebsite = port
                };
     protoServer.RegisterProtoTask(task);
     return task;
 }
示例#4
0
        public static IisSiteOptions Iis7Site(this ProtoServer protoServer, string websiteName, string pathForWebsite, int port)
        {
            var task = new IisProtoTask(websiteName, new DotNetPath())
            {
                Version        = IisVersion.Seven,
                PathForWebsite = pathForWebsite,
                PortForWebsite = port
            };

            protoServer.RegisterProtoTask(task);
            return(task);
        }
示例#5
0
 public static IisSiteOptions Iis7Site(this ProtoServer protoServer, string websiteName, string pathForWebsite, Action<IisSiteBindingCollection> bindings)
 {
     var siteBindings = new IisSiteBindingCollection();
     bindings(siteBindings);
     var task = new IisProtoTask(websiteName, new DotNetPath())
                    {
                        Version = IisVersion.Seven,
                        PathOnServer = pathForWebsite,
                        Bindings = siteBindings
                    };
     protoServer.RegisterProtoTask(task);
     return task;
 }
 public override void Context()
 {
     sut = new IisProtoTask("test", new DotNetPath());
 }
 public override void Context()
 {
     expectedIdentity = ProcessModelIdentity.LocalSystem;
     sut = new IisProtoTask("test", new DotNetPath());
 }