PageRenderTime 66ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/AppServicesHelloWorldApp/Services/Core/DefaultTimeProvider.cs

http://appservices.codeplex.com
C# | 47 lines | 13 code | 4 blank | 30 comment | 0 complexity | c34eaeab18979054c99cb4f15a6aeb50 MD5 | raw file
  1. #region AppServices License
  2. // Product:
  3. // AppServices
  4. // http://appservices.codeplex.com
  5. //
  6. // Author:
  7. // Pawel Idzikowski
  8. // http://www.polenter.com
  9. // mailto:idzikowski@polenter.com?subject=AppServices-Question
  10. //
  11. // This software is provided 'as-is', without any express or implied warranty.
  12. // In no event will the author(s) be held liable for any damages arising from
  13. // the use of this software.
  14. //
  15. // Permission is granted to anyone to use this software for any purpose,
  16. // including commercial applications, and to alter it and redistribute it
  17. // freely, subject to the following restrictions:
  18. //
  19. // 1. The origin of this software must not be misrepresented; you must not
  20. // claim that you wrote the original software. If you use this software
  21. // in a product, an acknowledgment in the product documentation would be
  22. // appreciated but is not required.
  23. //
  24. // 2. Altered source versions must be plainly marked as such, and must not
  25. // be misrepresented as being the original software.
  26. //
  27. // 3. This notice may not be removed or altered from any source distribution.
  28. #endregion
  29. using System;
  30. namespace AppServicesHelloWorldApp.Services.Core
  31. {
  32. public class DefaultTimeProvider : ITimeProvider
  33. {
  34. /// <summary>
  35. /// Gets current time
  36. /// </summary>
  37. /// <returns></returns>
  38. public DateTime GetTime()
  39. {
  40. return DateTime.Now;
  41. }
  42. }
  43. }