PlatformAbstractionLayer.cs 350 B

1234567891011121314151617181920
  1. using System.Threading.Tasks;
  2. namespace MQTTnet.Implementations
  3. {
  4. public static class PlatformAbstractionLayer
  5. {
  6. public static Task CompletedTask
  7. {
  8. get
  9. {
  10. #if NET452
  11. return Task.FromResult(0);
  12. #else
  13. return Task.CompletedTask;
  14. #endif
  15. }
  16. }
  17. }
  18. }