Skip to content

Commit

Permalink
Removed ExtendedProtectionSelector references
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Offen committed Mar 17, 2017
1 parent fe51951 commit b6654b7
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 53 deletions.
50 changes: 25 additions & 25 deletions src/Grapevine.Tests/Server/AdvancedRestServerFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,31 +35,31 @@ public void AuthenticationSchemesProperty()
listener.Received().AuthenticationSchemes = val;
}

[Fact]
public void ExtendedProtectionPolicyProperty()
{
var listener = Substitute.For<IHttpListener>();
var advanced = new AdvancedRestServer(listener);

var val = advanced.ExtendedProtectionPolicy;
advanced.ExtendedProtectionPolicy = val;

var temp = listener.Received().ExtendedProtectionPolicy;
listener.Received().ExtendedProtectionPolicy = val;
}

[Fact]
public void ExtendedProtectionSelectorDelegateProperty()
{
var listener = Substitute.For<IHttpListener>();
var advanced = new AdvancedRestServer(listener);

var val = advanced.ExtendedProtectionSelectorDelegate;
advanced.ExtendedProtectionSelectorDelegate = val;

var temp = listener.Received().ExtendedProtectionSelectorDelegate;
listener.Received().ExtendedProtectionSelectorDelegate = val;
}
//[Fact]
//public void ExtendedProtectionPolicyProperty()
//{
// var listener = Substitute.For<IHttpListener>();
// var advanced = new AdvancedRestServer(listener);

// var val = advanced.ExtendedProtectionPolicy;
// advanced.ExtendedProtectionPolicy = val;

// var temp = listener.Received().ExtendedProtectionPolicy;
// listener.Received().ExtendedProtectionPolicy = val;
//}

//[Fact]
//public void ExtendedProtectionSelectorDelegateProperty()
//{
// var listener = Substitute.For<IHttpListener>();
// var advanced = new AdvancedRestServer(listener);

// var val = advanced.ExtendedProtectionSelectorDelegate;
// advanced.ExtendedProtectionSelectorDelegate = val;

// var temp = listener.Received().ExtendedProtectionSelectorDelegate;
// listener.Received().ExtendedProtectionSelectorDelegate = val;
//}

[Fact]
public void IgnoreWriteExceptionsProperty()
Expand Down
32 changes: 16 additions & 16 deletions src/Grapevine/Interfaces/Server/IHttpListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public interface IHttpListener : IDisposable
/// <summary>
/// Get or set the ExtendedProtectionPolicy to use for extended protection for a session.
/// </summary>
ExtendedProtectionPolicy ExtendedProtectionPolicy { get; set; }
//ExtendedProtectionPolicy ExtendedProtectionPolicy { get; set; }

/// <summary>
/// Get or set the delegate called to determine the ExtendedProtectionPolicy to use for each request.
/// </summary>
System.Net.HttpListener.ExtendedProtectionSelector ExtendedProtectionSelectorDelegate { get; set; }
//System.Net.HttpListener.ExtendedProtectionSelector ExtendedProtectionSelectorDelegate { get; set; }

/// <summary>
/// Gets or sets a Boolean value that specifies whether your application receives exceptions that occur when an HttpListener sends the response to the client.
Expand Down Expand Up @@ -134,20 +134,20 @@ public AuthenticationSchemeSelector AuthenticationSchemeSelectorDelegate

public ServiceNameCollection DefaultServiceNames => InnerListener.DefaultServiceNames;

public ExtendedProtectionPolicy ExtendedProtectionPolicy
{
get { return InnerListener.ExtendedProtectionPolicy; }
set
{
InnerListener.ExtendedProtectionPolicy = value;
}
}

public System.Net.HttpListener.ExtendedProtectionSelector ExtendedProtectionSelectorDelegate
{
get { return InnerListener.ExtendedProtectionSelectorDelegate; }
set { InnerListener.ExtendedProtectionSelectorDelegate = value; }
}
//public ExtendedProtectionPolicy ExtendedProtectionPolicy
//{
// get { return InnerListener.ExtendedProtectionPolicy; }
// set
// {
// InnerListener.ExtendedProtectionPolicy = value;
// }
//}

//public System.Net.HttpListener.ExtendedProtectionSelector ExtendedProtectionSelectorDelegate
//{
// get { return InnerListener.ExtendedProtectionSelectorDelegate; }
// set { InnerListener.ExtendedProtectionSelectorDelegate = value; }
//}

public bool IgnoreWriteExceptions
{
Expand Down
4 changes: 2 additions & 2 deletions src/Grapevine/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
[assembly: AssemblyDescription("")]
[assembly: AssemblyCompany("Scott Offen")]
[assembly: AssemblyProduct("Grapevine")]
[assembly: AssemblyVersion("4.0.0.252")]
[assembly: AssemblyFileVersion("4.0.0.252")]
[assembly: AssemblyVersion("4.1.0.0")]
[assembly: AssemblyFileVersion("4.1.0.0")]
[assembly: AssemblyInformationalVersion("4.0.0.196")]
[assembly: AssemblyCopyright("© 2014-2016 Scott Offen")]
[assembly: AssemblyTrademark("")]
Expand Down
20 changes: 10 additions & 10 deletions src/Grapevine/Server/RestServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -427,20 +427,20 @@ public AuthenticationSchemes AuthenticationSchemes
/// <summary>
/// Get or set the ExtendedProtectionPolicy to use for extended protection for a session
/// </summary>
public ExtendedProtectionPolicy ExtendedProtectionPolicy
{
get { return _listener.ExtendedProtectionPolicy; }
set { _listener.ExtendedProtectionPolicy = value; }
}
//public ExtendedProtectionPolicy ExtendedProtectionPolicy
//{
// get { return _listener.ExtendedProtectionPolicy; }
// set { _listener.ExtendedProtectionPolicy = value; }
//}

/// <summary>
/// Get or set the delegate called to determine the ExtendedProtectionPolicy to use for each request
/// </summary>
public ExtendedProtectionSelector ExtendedProtectionSelectorDelegate
{
get { return _listener.ExtendedProtectionSelectorDelegate; }
set { _listener.ExtendedProtectionSelectorDelegate = value; }
}
//public ExtendedProtectionSelector ExtendedProtectionSelectorDelegate
//{
// get { return _listener.ExtendedProtectionSelectorDelegate; }
// set { _listener.ExtendedProtectionSelectorDelegate = value; }
//}

/// <summary>
/// Gets or sets a Boolean value that specifies whether your application receives exceptions that occur when an HttpListener sends the response to the client
Expand Down

0 comments on commit b6654b7

Please sign in to comment.