Skip to content

Commit

Permalink
Implemented some more items.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Jul 2, 2018
1 parent ac2a0d2 commit 5d85735
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 24 deletions.
3 changes: 2 additions & 1 deletion JexusManager.Features.Rewrite/ConditionItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public ConditionItem(ConfigurationElement element)
public string Input { get; set; }

public int MatchType { get; set; }
public string Flag { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); }

public string Flag { get; set; }

public void Apply()
{
Expand Down
3 changes: 2 additions & 1 deletion JexusManager.Features.Rewrite/Inbound/ServerVariableItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public ServerVariableItem(ConfigurationElement element)
public string Value { get; set; }

public string Name { get; set; }
public string Flag { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); }

public string Flag { get; set; }

public void Apply()
{
Expand Down
6 changes: 5 additions & 1 deletion Microsoft.Web.Administration/BindingCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ protected override Binding CreateNewElement(string elementTagName)

public void Remove(Binding element, bool removeConfigOnly)
{
throw new NotImplementedException();
element.Delete();
if (!removeConfigOnly)
{
Remove(element);
}
}

internal Site Parent { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ public bool IsSynchronized
get { return false; }
}

public object SyncRoot
{
get { throw new NotImplementedException(); }
}
public object SyncRoot { get; } = new object();

internal void Add(ConfigurationAttribute item)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ public bool IsSynchronized
get { throw new NotImplementedException(); }
}

public object SyncRoot
{
get { throw new NotImplementedException(); }
}
public object SyncRoot { get; } = new object();

public IEnumerator GetEnumerator()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ public bool IsSynchronized
get { throw new NotImplementedException(); }
}

public object SyncRoot
{
get { throw new NotImplementedException(); }
}
public object SyncRoot { get; } = new object();

public IEnumerator GetEnumerator()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ public bool IsSynchronized
get { throw new NotImplementedException(); }
}

public object SyncRoot
{
get { throw new NotImplementedException(); }
}
public object SyncRoot { get; } = new object();

public ConfigurationMethod this[int index]
{
Expand Down
22 changes: 17 additions & 5 deletions Microsoft.Web.Administration/SiteCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,39 @@ internal SiteCollection(ConfigurationElement element, ServerManager parent)

public Site Add(string name, string physicalPath, int port)
{
throw new NotImplementedException();
var site = new Site(this);
site.Name = name;
site.Bindings.Add($"*:{port}:", "http");
site.Applications.Add(Application.RootPath, physicalPath);
return Add(site);
}

public Site Add(string name, string bindingInformation, string physicalPath, byte[] certificateHash)
{
throw new NotImplementedException();
return Add(name, bindingInformation, physicalPath, certificateHash, "MY");
}

public Site Add(string name, string bindingProtocol, string bindingInformation, string physicalPath)
{
throw new NotImplementedException();
var site = new Site(this);
site.Name = name;
site.Bindings.Add(bindingInformation, bindingProtocol);
site.Applications.Add(Application.RootPath, physicalPath);
return Add(site);
}

public Site Add(string name, string bindingInformation, string physicalPath, byte[] certificateHash, string certificateStore)
{
throw new NotImplementedException();
return Add(name, bindingInformation, physicalPath, certificateHash, certificateStore, SslFlags.None);
}

public Site Add(string name, string bindingInformation, string physicalPath, byte[] certificateHash, string certificateStore, SslFlags sslFlags)
{
throw new NotImplementedException();
var site = new Site(this);
site.Name = name;
site.Bindings.Add(bindingInformation, certificateHash, certificateStore, sslFlags);
site.Applications.Add(Application.RootPath, physicalPath);
return Add(site);
}

protected override Site CreateNewElement(string elementTagName)
Expand Down

0 comments on commit 5d85735

Please sign in to comment.