Skip to content

Commit 5c4c28e

Browse files
authored
Merge pull request #4 from jheier/master
Cleanup code
2 parents a87ef50 + 3d552de commit 5c4c28e

16 files changed

Lines changed: 28 additions & 105 deletions

ConfigureServer.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Start-Process $webpi_download_path '/qn' -PassThru | Wait-Process
1616
cd 'C:/Program Files/Microsoft/Web Platform Installer'; .\WebpiCmd.exe /Install /Products:'UrlRewrite2,ARRv3_0' /AcceptEULA
1717
Set-WebConfiguration system.webServer/proxy -value @{ enabled = "true" }
1818

19-
Get-WebConfiguration `
19+
Get-WebConfiguration `
2020
-pspath 'MACHINE/WEBROOT/APPHOST' `
2121
-filter "system.webServer/modules/add" -recurse | `
2222
where {$_.PSPath -eq 'MACHINE/WEBROOT/APPHOST' -and $_.Type -eq ''} `
@@ -25,6 +25,5 @@ Set-WebConfiguration system.webServer/proxy -value @{ enabled = "true" }
2525
Remove-WebConfigurationLock -filter $filter -verbose
2626
}
2727

28-
2928
& $env:windir\system32\inetsrv\appcmd unlock config /section:windowsAuthentication
3029
& $env:windir\system32\inetsrv\appcmd unlock config /section:anonymousAuthentication

RutaHttpModule/AdInteraction.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Diagnostics.CodeAnalysis;
4-
using System.DirectoryServices;
54
using System.DirectoryServices.AccountManagement;
6-
using System.DirectoryServices.ActiveDirectory;
75
using System.Linq;
8-
using System.Text;
9-
using System.Threading.Tasks;
106

117
namespace RutaHttpModule
128
{

RutaHttpModule/IAdInteraction.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
1+
using System.Collections.Generic;
62

73
namespace RutaHttpModule
84
{
95
internal interface IAdInteraction
106
{
117
(string login, string name, string email, IEnumerable<string> groups) GetUserInformation(string domainUsername);
128
}
13-
}
9+
}

RutaHttpModule/IRutaHttpContext.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Collections.Specialized;
4-
using System.Linq;
5-
using System.Text;
6-
using System.Threading.Tasks;
7-
8-
namespace RutaHttpModule
1+
namespace RutaHttpModule
92
{
103
internal interface IRutaHttpContext
114
{
@@ -14,4 +7,4 @@ internal interface IRutaHttpContext
147
void RemoveRequestHeader(string header);
158
void AddRequestHeader(string header, string value);
169
}
17-
}
10+
}

RutaHttpModule/ISettings.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
7-
namespace RutaHttpModule
1+
namespace RutaHttpModule
82
{
93
internal interface ISettings
104
{
@@ -18,4 +12,4 @@ internal interface ISettings
1812
string AdUserBaseDn { get; }
1913
string AdGroupBaseDn { get; }
2014
}
21-
}
15+
}

RutaHttpModule/LdapExtensions.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
using System.DirectoryServices;
44
using System.DirectoryServices.AccountManagement;
55
using System.DirectoryServices.ActiveDirectory;
6-
using System.Linq;
7-
using System.Text;
8-
using System.Threading.Tasks;
96

107
namespace RutaHttpModule
118
{

RutaHttpModule/Properties/AssemblyInfo.cs

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
using System.Runtime.CompilerServices;
33
using System.Runtime.InteropServices;
44

5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
85
[assembly: AssemblyTitle("RutaHttpModule")]
96
[assembly: AssemblyDescription("")]
107
[assembly: AssemblyConfiguration("")]
@@ -13,27 +10,12 @@
1310
[assembly: AssemblyCopyright("Copyright © 2016")]
1411
[assembly: AssemblyTrademark("")]
1512
[assembly: AssemblyCulture("")]
16-
17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
19-
// COM, set the ComVisible attribute to true on that type.
2013
[assembly: ComVisible(false)]
21-
22-
// The following GUID is for the ID of the typelib if this project is exposed to COM
2314
[assembly: Guid("f582add6-a40a-45f2-a046-abc48a350b16")]
2415

25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
37-
[assembly: AssemblyInformationalVersion("1.0.0.0")]
16+
[assembly: AssemblyVersion("1.0.0.1")]
17+
[assembly: AssemblyFileVersion("1.0.0.1")]
18+
[assembly: AssemblyInformationalVersion("1.0.0.1")]
19+
3820
[assembly: InternalsVisibleTo("RutaHttpModuleTest")]
3921
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]

RutaHttpModule/RutaHttpContext.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Collections.Specialized;
42
using System.Diagnostics.CodeAnalysis;
5-
using System.Linq;
6-
using System.Text;
7-
using System.Threading.Tasks;
83
using System.Web;
94

105
namespace RutaHttpModule

RutaHttpModule/RutaModule.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ public sealed class RutaModule : IHttpModule
1212
private readonly ISettings settings;
1313
private TraceSource traceSource;
1414

15-
1615
[ExcludeFromCodeCoverage]
1716
public RutaModule()
1817
: this(new AdInteraction(), new SettingsWrapper())

RutaHttpModule/SettingsWrapper.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Diagnostics.CodeAnalysis;
4-
using System.Linq;
5-
using System.Text;
6-
using System.Threading.Tasks;
1+
using System.Diagnostics.CodeAnalysis;
72

83
namespace RutaHttpModule
94
{

0 commit comments

Comments
 (0)