Commit 62040326 authored by justcoding121's avatar justcoding121

cleanup

parent c2462ce4
...@@ -35,7 +35,7 @@ $MSBuild -replace ' ', '` ' ...@@ -35,7 +35,7 @@ $MSBuild -replace ' ', '` '
FormatTaskName (("-"*25) + "[{0}]" + ("-"*25)) FormatTaskName (("-"*25) + "[{0}]" + ("-"*25))
#default task #default task
Task default -depends Clean, Build, Document, Package, PrepareIntegrationTest Task default -depends Package
#cleans obj, b #cleans obj, b
Task Clean { Task Clean {
...@@ -43,8 +43,19 @@ Task Clean { ...@@ -43,8 +43,19 @@ Task Clean {
exec { . $MSBuild $SolutionFile /t:Clean /v:quiet } exec { . $MSBuild $SolutionFile /t:Clean /v:quiet }
} }
#install root cetificate needed for integration tests
Task Setup-Integration-Test-Tools -depends Clean {
$startInfo = new-object System.Diagnostics.ProcessStartInfo "PowerShell";
$startInfo.Arguments = "$Here\install-certificate.ps1";
$startInfo.Verb = "runas";
$process = [System.Diagnostics.Process]::Start($startInfo);
$process.WaitForExit()
}
#install build tools #install build tools
Task Install-BuildTools -depends Clean { Task Install-BuildTools -depends Setup-Integration-Test-Tools {
if(!(Test-Path $MSBuild)) if(!(Test-Path $MSBuild))
{ {
cinst microsoft-build-tools -y cinst microsoft-build-tools -y
...@@ -123,14 +134,3 @@ Task Document -depends Build { ...@@ -123,14 +134,3 @@ Task Document -depends Build {
Task Package -depends Document { Task Package -depends Document {
exec { . $NuGet pack "$SolutionRoot\$ProjectName\$ProjectName.nuspec" -Properties Configuration=$Configuration -OutputDirectory "$RepoRoot" -Version "$Version" } exec { . $NuGet pack "$SolutionRoot\$ProjectName\$ProjectName.nuspec" -Properties Configuration=$Configuration -OutputDirectory "$RepoRoot" -Version "$Version" }
} }
#install root cetificate needed for integration tests
Task PrepareIntegrationTest {
$startInfo = new-object System.Diagnostics.ProcessStartInfo "PowerShell";
$startInfo.Arguments = "$Here\install-certificate.ps1";
$startInfo.Verb = "runas";
$process = [System.Diagnostics.Process]::Start($startInfo);
$process.WaitForExit()
}
\ No newline at end of file
* Modify this text to trigger appveyor build cache
\ No newline at end of file
...@@ -22,6 +22,9 @@ platform: Any CPU ...@@ -22,6 +22,9 @@ platform: Any CPU
# build Configuration, i.e. Debug, Release, etc. # build Configuration, i.e. Debug, Release, etc.
configuration: Release configuration: Release
#set file change to watch so that cache can be invalidated on demand.
cache: .build\cleanup-cache.txt
# to run your custom scripts instead of automatic MSBuild # to run your custom scripts instead of automatic MSBuild
build_script: build_script:
- cmd: build.bat Package - cmd: build.bat Package
......
...@@ -49,12 +49,6 @@ namespace Titanium.Web.Proxy.Http ...@@ -49,12 +49,6 @@ namespace Titanium.Web.Proxy.Http
/// </summary> /// </summary>
internal string OriginalContentEncoding { get; set; } internal string OriginalContentEncoding { get; set; }
/// <summary>
/// Store whether the original request/response body was read by user.
/// We need this detail to syphon out attached tcp connection for reuse.
/// </summary>
public bool OriginalIsBodyRead { get; internal set; }
/// <summary> /// <summary>
/// Keeps the body data after the session is finished. /// Keeps the body data after the session is finished.
/// </summary> /// </summary>
...@@ -269,7 +263,6 @@ namespace Titanium.Web.Proxy.Http ...@@ -269,7 +263,6 @@ namespace Titanium.Web.Proxy.Http
OriginalContentLength = ContentLength; OriginalContentLength = ContentLength;
OriginalIsChunked = IsChunked; OriginalIsChunked = IsChunked;
OriginalContentEncoding = ContentEncoding; OriginalContentEncoding = ContentEncoding;
OriginalIsBodyRead = IsBodyRead;
} }
/// <summary> /// <summary>
...@@ -282,7 +275,6 @@ namespace Titanium.Web.Proxy.Http ...@@ -282,7 +275,6 @@ namespace Titanium.Web.Proxy.Http
OriginalContentLength = requestResponseBase.OriginalContentLength; OriginalContentLength = requestResponseBase.OriginalContentLength;
OriginalIsChunked = requestResponseBase.OriginalIsChunked; OriginalIsChunked = requestResponseBase.OriginalIsChunked;
OriginalContentEncoding = requestResponseBase.OriginalContentEncoding; OriginalContentEncoding = requestResponseBase.OriginalContentEncoding;
OriginalIsBodyRead = requestResponseBase.OriginalIsBodyRead;
} }
/// <summary> /// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment