Skip to content

Commit

Permalink
- Code cleanup
Browse files Browse the repository at this point in the history
- Properly implement IDisposable interface for ClientBase per CA1063
- Configuration class marked static
- Marked tt output as <auto-generated>
  • Loading branch information
onionhammer committed Jan 29, 2016
1 parent 0c3bc56 commit a7f2f52
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 172 deletions.
18 changes: 4 additions & 14 deletions WebApiProxy.Tasks/ProxyGenerationTask.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
using System;
using System.IO;
using System.Net.Http;
using Microsoft.Build.Framework;
using WebApiProxy.Core.Models;
using WebApiProxy.Tasks.Templates;
using WebApiProxy.Tasks.Models;
using Microsoft.Build.Evaluation;
using System.Linq;
using WebApiProxy.Tasks.Infrastructure;
using WebApiProxy.Tasks.Models;

namespace WebApiProxy.Tasks
{
public class ProxyGenerationTask : ITask
Expand Down Expand Up @@ -50,13 +46,10 @@ public bool Execute()
{
throw ex;
}

return true;
}





private void tryReadFromCache()
{
if (!File.Exists(Configuration.CacheFile))
Expand All @@ -66,8 +59,5 @@ private void tryReadFromCache()
var source = File.ReadAllText(Configuration.CacheFile);
File.WriteAllText(Filename, source);
}


}
}

}
Loading

0 comments on commit a7f2f52

Please sign in to comment.