Skip to content

Instantly share code, notes, and snippets.

@mskutta
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mskutta/54902a628cfb11f7e400 to your computer and use it in GitHub Desktop.
Save mskutta/54902a628cfb11f7e400 to your computer and use it in GitHub Desktop.
Social Sort Task.cs
public class Task
{
public void Run()
{
var manager = new Manager();
manager.UpdateCaches();
}
}
public class Manager : IManager
{
public void UpdateCaches()
{
var service = GetService();
var request = GetRequest(service);
var metrics = Execute(request);
Cache.CacheMetrics(metrics);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment