IMessageSendResultLogger.cs 1.2 KB

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using WindowsPhone.Recipes.Push.Messasges;
  6. using WindowsPhone.Recipes.Push.Server.Models;
  7. namespace WindowsPhone.Recipes.Push.Server.ViewModels
  8. {
  9. /// <summary>
  10. /// Implement this interface to log push notification messages send result and error.
  11. /// </summary>
  12. internal interface IMessageSendResultLogger
  13. {
  14. /// <summary>
  15. /// Implement this method by logging push notification messages send result.
  16. /// </summary>
  17. /// <param name="patternName">The server push pattern used while reporting this message send result.</param>
  18. /// <param name="result">The message send result to log.</param>
  19. void Log(string patternName, MessageSendResult result);
  20. /// <summary>
  21. /// Implement this method by logging push notification messages error result.
  22. /// </summary>
  23. /// <param name="patternName">The server push pattern used while reporting this message send error.</param>
  24. /// <param name="result">The message send result to log.</param>
  25. void Log(string patternName, MessageSendException exception);
  26. }
  27. }