Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created May 3, 2017 14:42
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 justinyoo/e81cde1e11af31d1f52346574135a4e2 to your computer and use it in GitHub Desktop.
Save justinyoo/e81cde1e11af31d1f52346574135a4e2 to your computer and use it in GitHub Desktop.
Know Your Cloud Resource Costs on Azure
public class Program
{
public static void Main(string[] args)
{
// Defines all dependencies to be injected.
...
// Aggregates all usage data.
var aggregator = new CostAggregationService(...);
var result1 = aggregator.ProcessAsync(dateStart, dateEnd).Result;
// Sends alerts/warnings to applied users.
var reminder = new CostReminderService(...);
var result2 = reminder.ProcessAsync(dateStart, dateEnd, ...).Result;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment