Guest User

Untitled

a guest
Mar 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. class Program
  2. {
  3. private readonly IFooService _service;
  4.  
  5. public Program(IFooService service)
  6. {
  7. _service = service;
  8. }
  9.  
  10. void Main(string[] args)
  11. {
  12. RemoveOldEntries();
  13. }
  14.  
  15. public void RemoveOldEntries()
  16. {
  17. _service.DeleteOldItems(DateTime.UtcNow);
  18. }
  19. }
  20.  
  21. Program does not contain a static 'Main' method suitable for an entry point
Add Comment
Please, Sign In to add comment